validate: Fix copying of action name

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7334>
This commit is contained in:
Sebastian Dröge 2024-08-09 11:08:36 +03:00 committed by Backport Bot
parent 364d88045d
commit b8d7cdbd1f

View file

@ -438,8 +438,8 @@ _action_copy (GstValidateAction * act)
if (act->structure) {
copy->structure = gst_structure_copy (act->structure);
copy->type = gst_structure_get_name (copy->structure);
if (!(act->name = gst_structure_get_string (copy->structure, "name")))
act->name = "";
if (!(copy->name = gst_structure_get_string (copy->structure, "name")))
copy->name = "";
}
if (act->priv->main_structure)