From 506e537f82142805e8004953dec8cec388bd5fb7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 5 May 2017 14:57:56 +0200 Subject: [PATCH] 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. --- validate/gst/validate/gst-validate-scenario.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index 4e41aca029..94b677c356 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; }