mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
Revert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad"
This reverts commit d3cad28da9
.
It causes performance problems because acceptcaps() propagates downstream.
This commit is contained in:
parent
d3cad28da9
commit
7a82ed41f8
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue