validate:scenario: Set the main action structure in fill_structure

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D71
This commit is contained in:
Thibault Saunier 2015-02-27 22:39:42 +01:00 committed by Thibault Saunier
parent bbd04eef4c
commit 460bf61345

View file

@ -1043,7 +1043,6 @@ _set_action_playback_time (GstValidateScenario * scenario,
return TRUE;
}
static GstValidateExecuteActionReturn
_fill_action (GstValidateScenario * scenario, GstValidateAction * action,
GstStructure * structure, gboolean add_to_lists)
@ -1086,6 +1085,9 @@ _fill_action (GstValidateScenario * scenario, GstValidateAction * action,
action->structure = gst_structure_copy (structure);
if (!action->priv->main_structure)
action->priv->main_structure = gst_structure_copy (structure);
if (IS_CONFIG_ACTION_TYPE (action_type->flags)) {
res = action_type->execute (scenario, action);
gst_validate_action_unref (action);
@ -1115,7 +1117,6 @@ _fill_action (GstValidateScenario * scenario, GstValidateAction * action,
return res;
}
static GstValidateExecuteActionReturn
_execute_sub_action_action (GstValidateAction * action)
{
@ -1859,7 +1860,6 @@ _load_scenario_file (GstValidateScenario * scenario,
structure, TRUE) == GST_VALIDATE_EXECUTE_ACTION_ERROR)
goto failed;
action->priv->main_structure = gst_structure_copy (structure);
action->action_number = priv->num_actions++;
}