mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
pad-monitor: Do not try to compare 2 not fixed values
There is no reliable way of checking those values in the case they are not fixed, let's just make sure we get fixed values before executing the check
This commit is contained in:
parent
c2b58f347e
commit
4d59a2720e
1 changed files with 3 additions and 0 deletions
|
@ -347,6 +347,9 @@ _structures_field_is_contained (GstStructure * s1, GstStructure * s2,
|
|||
if (!v1)
|
||||
return FALSE;
|
||||
|
||||
if (!gst_value_is_fixed (v1) && !gst_value_is_fixed (v2))
|
||||
return TRUE;
|
||||
|
||||
if (gst_value_compare (v1, v2) == GST_VALUE_EQUAL)
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue