projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37e5aeb
)
structured: Enhance error message when no clip duration set
upstream/1.16
author
Thibault Saunier
<tsaunier@igalia.com>
Wed, 31 Jul 2019 01:24:07 +0000
(18:24 -0700)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 1 Jan 2020 15:08:41 +0000
(15:08 +0000)
ges/ges-structured-interface.c
patch
|
blob
|
history
diff --git
a/ges/ges-structured-interface.c
b/ges/ges-structured-interface.c
index
157d88c
..
5a5f2f0
100644
(file)
--- 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 =