mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-27 02:10:41 +00:00
Merge fix for #112596 from HEAD
Original commit message from CVS: Merge fix for #112596 from HEAD
This commit is contained in:
parent
dd61f9b1b3
commit
56125511dc
|
@ -740,16 +740,21 @@ gst_caps_is_always_compatible (GstCaps *fromcaps, GstCaps *tocaps)
|
||||||
|
|
||||||
while (fromcaps) {
|
while (fromcaps) {
|
||||||
GstCaps *destcaps = tocaps;
|
GstCaps *destcaps = tocaps;
|
||||||
|
/* assume caps is incompatible */
|
||||||
|
gboolean compat = FALSE;
|
||||||
|
|
||||||
while (destcaps) {
|
while (destcaps && !compat) {
|
||||||
if (gst_caps_check_compatibility_func (fromcaps, destcaps))
|
if (gst_caps_check_compatibility_func (fromcaps, destcaps)) {
|
||||||
return TRUE;
|
compat = TRUE;
|
||||||
|
}
|
||||||
destcaps = destcaps->next;
|
destcaps = destcaps->next;
|
||||||
}
|
}
|
||||||
|
if (!compat)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
fromcaps = fromcaps->next;
|
fromcaps = fromcaps->next;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps*
|
static GstCaps*
|
||||||
|
|
Loading…
Reference in a new issue