mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible"
This reverts commit 0c5d502073
.
See bug #658541.
This commit is contained in:
parent
14f5518f3d
commit
2bfada5581
1 changed files with 2 additions and 2 deletions
|
@ -2554,7 +2554,7 @@ gst_pad_acceptcaps_default (GstPad * pad, GstCaps * caps)
|
|||
|
||||
GST_DEBUG_OBJECT (pad, "allowed caps %" GST_PTR_FORMAT, allowed);
|
||||
|
||||
result = gst_caps_is_subset (caps, allowed);
|
||||
result = gst_caps_can_intersect (allowed, caps);
|
||||
|
||||
gst_caps_unref (allowed);
|
||||
|
||||
|
@ -2760,7 +2760,7 @@ gst_pad_configure_sink (GstPad * pad, GstCaps * caps)
|
|||
gboolean res;
|
||||
|
||||
/* See if pad accepts the caps */
|
||||
if (!gst_caps_is_subset (caps, gst_pad_get_pad_template_caps (pad)))
|
||||
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