pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Sep 2011 11:41:19 +0000 (13:41 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 8 Sep 2011 11:42:53 +0000 (13:42 +0200)
gst/gstpad.c

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