summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-05-05 14:57:56 +0200
committerTim-Philipp Müller <tim@centricular.com>2018-03-28 12:53:33 +0100
commitbcfe7e984c077fc27423c797c6324be9cf546b55 (patch)
tree80e09ad2c3db455933004e259d549cd6ba688143
parent6920b68fa4f820c1df7f5736513d97a61d36d894 (diff)
validate-scenario: Don't end up with invalid action name
When replacing an action structure, also update the action name with the (new) name from the new structure. Otherwise we end up with a bogus name from the previous (deleted) structure.
-rw-r--r--validate/gst/validate/gst-validate-scenario.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c
index 4e41aca..94b677c 100644
--- a/validate/gst/validate/gst-validate-scenario.c
+++ b/validate/gst/validate/gst-validate-scenario.c
@@ -1524,6 +1524,9 @@ gst_validate_execute_action (GstValidateActionType * action_type,
action->priv->printed = FALSE;
action->structure = gst_structure_copy (action->priv->main_structure);
+ if (!(action->name = gst_structure_get_string (action->structure, "name")))
+ action->name = "";
+
if (res == GST_VALIDATE_EXECUTE_ACTION_ASYNC)
action->priv->executing_last_subaction = TRUE;
}