summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2019-07-30 18:24:07 -0700
committerTim-Philipp Müller <tim@centricular.com>2020-01-01 15:08:41 +0000
commitff2ebb81e9fb2c747f792c79472312f7e8a7dae9 (patch)
treebea6803d58ae1567d595ce9e1530f446b6fd20bb
parent37e5aebad32d44a115a74092f43e62cb73bbd47e (diff)
structured: Enhance error message when no clip duration set
-rw-r--r--ges/ges-structured-interface.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ges/ges-structured-interface.c b/ges/ges-structured-interface.c
index 157d88c4..5a5f2f00 100644
--- a/ges/ges-structured-interface.c
+++ b/ges/ges-structured-interface.c
@@ -418,6 +418,15 @@ _ges_add_clip_from_struct (GESTimeline * timeline, GstStructure * structure,
if (clip) {
res = TRUE;
+ if (GES_TIMELINE_ELEMENT_DURATION (clip) == 0) {
+ *error = g_error_new (GES_ERROR, 0,
+ "Clip %s has 0 as duration, please provide a proper duration",
+ asset_id);
+ res = FALSE;
+ goto beach;
+ }
+
+
if (GES_IS_TEST_CLIP (clip)) {
if (pattern) {
GEnumClass *enum_class =