videoconvert: Keep colorimetry and chroma-site fields if passthrough
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Mon, 27 Apr 2015 09:06:58 +0000 (11:06 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 27 Apr 2015 09:20:36 +0000 (11:20 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=748141

gst/videoconvert/gstvideoconvert.c

index e712aa3..1d3e9f8 100644 (file)
@@ -339,6 +339,12 @@ gst_video_convert_fixate_caps (GstBaseTransform * trans,
   /* fixate remaining fields */
   result = gst_caps_fixate (result);
 
+  if (direction == GST_PAD_SINK) {
+    if (gst_caps_is_subset (caps, result)) {
+      gst_caps_replace (&result, caps);
+    }
+  }
+
   return result;
 }