capsfilter: don't prefer passthrough
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Oct 2012 09:18:19 +0000 (11:18 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Oct 2012 09:18:19 +0000 (11:18 +0200)
Basetransform should not try to negotiate in passthrough mode but
respect the order of what we return in the transform_caps method.
A typical case is that you specify some specific new caps in the
caps property but also allow the current caps to pass.

plugins/elements/gstcapsfilter.c

index 5fa2ab3..fd6a094 100644 (file)
@@ -128,6 +128,7 @@ gst_capsfilter_init (GstCapsFilter * filter)
 {
   GstBaseTransform *trans = GST_BASE_TRANSFORM (filter);
   gst_base_transform_set_gap_aware (trans, TRUE);
+  gst_base_transform_set_prefer_passthrough (trans, FALSE);
   filter->filter_caps = gst_caps_new_any ();
 }