[PATCH v2 4/4] winegstreamer: Factor out amt_from_gst_caps().