Revert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Sep 2011 12:29:00 +0000 (14:29 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Sep 2011 12:29:00 +0000 (14:29 +0200)
This reverts commit d3cad28da936b037d877dc70c02286b81b680284.

It causes performance problems because acceptcaps() propagates downstream.

gst/gstpad.c

index eaeddea..4c0b8e9 100644 (file)
@@ -2781,7 +2781,7 @@ gst_pad_configure_sink (GstPad * pad, GstCaps * caps)
   gboolean res;
 
   /* See if pad accepts the caps */
-  if (!gst_pad_accept_caps (pad, caps))
+  if (!gst_caps_can_intersect (caps, gst_pad_get_pad_template_caps (pad)))
     goto not_accepted;
 
   /* set caps on pad if call succeeds */