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.
This commit is contained in:
Guillaume Desmottes 2019-02-08 14:23:15 +01:00
parent 916bf5cdf1
commit 78a8306955

View file

@ -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)",