mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
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:
parent
a17c214dba
commit
d5ddeaf8c2
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue