validate: Fix 'repeat' parameter on non ASYNC action types
authorThibault Saunier <tsaunier@igalia.com>
Fri, 24 Apr 2020 00:09:53 +0000 (20:09 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 27 Apr 2020 14:52:47 +0000 (10:52 -0400)
validate/gst/validate/gst-validate-scenario.c

index 04a563b..6c931c5 100644 (file)
@@ -2177,7 +2177,7 @@ execute_next_action_full (GstValidateScenario * scenario, GstMessage * message)
     act->priv->state = _execute_sub_action_action (act);
   }
 
-  if (act->priv->state != GST_VALIDATE_EXECUTE_ACTION_ASYNC) {
+  if (act->priv->state != GST_VALIDATE_EXECUTE_ACTION_ASYNC && act->repeat <= 0) {
     tmp = priv->actions;
     priv->actions = g_list_remove_link (priv->actions, tmp);