Revert "pad: Check via gst_pad_accept_caps() if a sinkpad accepts caps"

This reverts commit 7558fd21ee.

Many elements, like ac3parse, depend on the broken behaviour and
stop working after this change.
This commit is contained in:
Sebastian Dröge 2012-06-05 08:33:28 +02:00
parent 7558fd21ee
commit 9760c012f6

View file

@ -2783,7 +2783,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 */