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
@ -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…
x
Reference in New Issue
Block a user