validate:scenario: Handle not mandatory action types

Summary:
There is currently no way to handle the fact that action types
might be handled only by a specific application but not handling
this action types would not cause any difference for the good execution
of the scenario as a whole

Differential Revision: http://phabricator.freedesktop.org/D33
This commit is contained in:
Thibault Saunier 2015-03-05 13:33:27 +01:00
parent a17c214dba
commit d5ddeaf8c2

View file

@ -1808,6 +1808,12 @@ _load_scenario_file (GstValidateScenario * scenario,
&priv->handles_state);
continue;
} else if (!(action_type = _find_action_type (type))) {
if (gst_structure_has_field (structure, "optional-action-type")) {
GST_INFO_OBJECT (scenario,
"Action type not found %s but marked as not mandatory", type);
continue;
}
GST_ERROR_OBJECT (scenario, "We do not handle action types %s", type);
goto failed;
}