validate:scenario: Allow forcing running action on idle from scenario file

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>
This commit is contained in:
Thibault Saunier 2021-01-12 15:38:03 -03:00
parent f00048781f
commit a56823d8f4

View 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;