mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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:
parent
790e78c4f8
commit
506e537f82
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue