From 78a83069558785065c0bb035534d610d41edfe55 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 8 Feb 2019 14:23:15 +0100 Subject: [PATCH] validate: scenario: fix dropped checking when terminating scenario We want to early return if either no max value has been set for the scenario or if we didn't receive any QoS information. --- validate/gst/validate/gst-validate-scenario.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 1cf7a1a2b1..f5a4a3b878 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -832,7 +832,7 @@ gst_validate_scenario_check_dropped (GstValidateScenario * scenario) dropped = g_atomic_int_get (&priv->dropped); - if (priv->max_dropped == -1 || dropped != -1) + if (priv->max_dropped == -1 || dropped == -1) return; GST_DEBUG_OBJECT (scenario, "Number of dropped buffers: %d (max allowed: %d)",