From ea043c2f0ee68f31c076c0366fc5448c5883a326 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 30 Jul 2019 18:24:07 -0700 Subject: [PATCH] structured: Enhance error message when no clip duration set --- ges/ges-structured-interface.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ges/ges-structured-interface.c b/ges/ges-structured-interface.c index 61fe611..36d9c57 100644 --- a/ges/ges-structured-interface.c +++ b/ges/ges-structured-interface.c @@ -467,6 +467,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 = -- 2.7.4