From 4d59a2720e9af06608a0f0e7273f1ec42b74703d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 7 Oct 2013 19:47:15 -0300 Subject: [PATCH] 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 --- validate/gst/validate/gst-validate-pad-monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index dbc61feeac..41da298920 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -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;