mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 13:38:48 +00:00
directsoundsink: Check for a subset instead of non-empty intersection in accept-caps
This commit is contained in:
parent
4f58287aca
commit
78acb51dc8
1 changed files with 3 additions and 2 deletions
|
@ -314,10 +314,11 @@ gst_directsound_sink_acceptcaps (GstBaseSink * sink, GstQuery * query)
|
||||||
|
|
||||||
pad_caps = gst_pad_query_caps (pad, NULL);
|
pad_caps = gst_pad_query_caps (pad, NULL);
|
||||||
if (pad_caps) {
|
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);
|
gst_caps_unref (pad_caps);
|
||||||
if (!cret) {
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue