From: Sebastian Dröge Date: Tue, 26 Mar 2013 13:44:36 +0000 (+0100) Subject: directsoundsink: Check for a subset instead of non-empty intersection in accept-caps X-Git-Tag: 1.19.3~509^2~5988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78acb51dc88fe5e023ea64f84401e472824a7c2b;p=platform%2Fupstream%2Fgstreamer.git directsoundsink: Check for a subset instead of non-empty intersection in accept-caps --- diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index 62c443f..72a02d7 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -314,10 +314,11 @@ gst_directsound_sink_acceptcaps (GstBaseSink * sink, GstQuery * query) pad_caps = gst_pad_query_caps (pad, NULL); if (pad_caps) { - gboolean cret = gst_caps_can_intersect (pad_caps, caps); + gboolean cret = gst_caps_is_subset (caps, pad_caps); gst_caps_unref (pad_caps); if (!cret) { - GST_DEBUG_OBJECT (dsink, "Can't intersect caps, not accepting caps"); + GST_DEBUG_OBJECT (dsink, + "Caps are not a subset of the pad caps, not accepting caps"); goto done; } }