mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-19 22:40:45 +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) {
|
||||
GstCaps *destcaps = tocaps;
|
||||
/* assume caps is incompatible */
|
||||
gboolean compat = FALSE;
|
||||
|
||||
while (destcaps) {
|
||||
if (gst_caps_check_compatibility_func (fromcaps, destcaps))
|
||||
return TRUE;
|
||||
|
||||
while (destcaps && !compat) {
|
||||
if (gst_caps_check_compatibility_func (fromcaps, destcaps)) {
|
||||
compat = TRUE;
|
||||
}
|
||||
destcaps = destcaps->next;
|
||||
}
|
||||
if (!compat)
|
||||
return FALSE;
|
||||
|
||||
fromcaps = fromcaps->next;
|
||||
}
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static GstCaps*
|
||||
|
|
Loading…
Reference in a new issue