From d3cad28da936b037d877dc70c02286b81b680284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 8 Sep 2011 13:41:19 +0200 Subject: [PATCH] pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad --- gst/gstpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 4c0b8e9..eaeddea 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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 */ -- 2.7.4