Commit ff2ebb81 authored by Thibault Saunier's avatar Thibault Saunier 🌵 Committed by Tim-Philipp Müller
Browse files

structured: Enhance error message when no clip duration set

parent 37e5aeba
Pipeline #157154 skipped
......@@ -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 =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment