validate: Ensure Scenario isn't NULL when preparing action

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/192>
This commit is contained in:
Thibault Saunier 2020-05-07 08:49:34 -04:00 committed by Edward Hervey
parent 7ee3421cad
commit f6e45c8c90

View file

@ -3235,6 +3235,8 @@ gst_validate_action_default_prepare_func (GstValidateAction * action)
GstValidateActionType *type = gst_validate_get_action_type (action->type);
GstValidateScenario *scenario = gst_validate_action_get_scenario (action);
g_assert (scenario);
_update_well_known_vars (scenario);
gst_validate_structure_resolve_variables (action, action->structure,
scenario->priv->vars);