mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
ges:validate: Properly error when editing container fails
This commit is contained in:
parent
a55296314c
commit
9dc958e8ab
1 changed files with 6 additions and 1 deletions
|
@ -340,7 +340,12 @@ _edit_container (GstValidateScenario * scenario, GstValidateAction * action)
|
|||
clip_name = gst_structure_get_string (action->structure, "container-name");
|
||||
|
||||
container = ges_timeline_get_element (timeline, clip_name);
|
||||
g_return_val_if_fail (GES_IS_CONTAINER (container), FALSE);
|
||||
if (!container) {
|
||||
GST_VALIDATE_REPORT (scenario,
|
||||
g_quark_from_string ("scenario::execution-error"),
|
||||
"Could not find container %s", clip_name);
|
||||
return GST_VALIDATE_EXECUTE_ACTION_ERROR_REPORTED;
|
||||
}
|
||||
|
||||
if (!gst_validate_action_get_clocktime (scenario, action,
|
||||
"position", &position)) {
|
||||
|
|
Loading…
Reference in a new issue