mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-30 07:42:32 +00:00
pad: Check via gst_pad_accept_caps() if a sinkpad accepts caps
instead of just checking if the pad template caps would allow the caps. The actually supported caps can be far more restrictive than the template caps and only checking for the template caps can cause incompatible caps to be set on a pad. Fixes bug #677335.
This commit is contained in:
parent
1c0764f764
commit
7558fd21ee
1 changed files with 1 additions and 1 deletions
|
@ -2783,7 +2783,7 @@ gst_pad_configure_sink (GstPad * pad, GstCaps * caps)
|
||||||
gboolean res;
|
gboolean res;
|
||||||
|
|
||||||
/* See if pad accepts the caps */
|
/* 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;
|
goto not_accepted;
|
||||||
|
|
||||||
/* set caps on pad if call succeeds */
|
/* set caps on pad if call succeeds */
|
||||||
|
|
Loading…
Reference in a new issue