validate:scenario: Allow forcing running action on idle from scenario file
authorThibault Saunier <tsaunier@igalia.com>
Tue, 12 Jan 2021 18:38:03 +0000 (15:38 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Sat, 15 May 2021 22:55:19 +0000 (18:55 -0400)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>

validate/gst/validate/gst-validate-scenario.c

index 6d6e8de..0f12ab4 100644 (file)
@@ -4382,6 +4382,8 @@ gst_validate_scenario_load_structures (GstValidateScenario * scenario,
       gst_structure_get_boolean (structure, "handles-states",
           &priv->handles_state);
       gst_structure_get_boolean (structure, "ignore-eos", &priv->ignore_eos);
+      gst_structure_get_boolean (structure, "actions-on-idle",
+          &priv->execute_on_idle);
 
       if (!priv->handles_state)
         priv->target_state = GST_STATE_PLAYING;