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.
This commit is contained in:
Edward Hervey 2017-05-05 14:57:56 +02:00 committed by Edward Hervey
parent 790e78c4f8
commit 506e537f82

View file

@ -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;
}