basetransform: Prefer caps order given by the subclass of the template caps order
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 3 May 2011 15:26:53 +0000 (17:26 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 14 May 2011 09:39:34 +0000 (11:39 +0200)
libs/gst/base/gstbasetransform.c

index ccf0802..850f2f6 100644 (file)
@@ -853,7 +853,9 @@ gst_base_transform_find_transform (GstBaseTransform * trans, GstPad * pad,
     GST_DEBUG_OBJECT (trans,
         "intersecting against padtemplate %" GST_PTR_FORMAT, templ_caps);
 
-    intersect = gst_caps_intersect (othercaps, templ_caps);
+    intersect =
+        gst_caps_intersect_full (othercaps, templ_caps,
+        GST_CAPS_INTERSECT_FIRST);
 
     gst_caps_unref (othercaps);
     othercaps = intersect;