mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
structured: Enhance error message when no clip duration set
This commit is contained in:
parent
43907adc1d
commit
ea043c2f0e
1 changed files with 9 additions and 0 deletions
|
@ -467,6 +467,15 @@ _ges_add_clip_from_struct (GESTimeline * timeline, GstStructure * structure,
|
||||||
if (clip) {
|
if (clip) {
|
||||||
res = TRUE;
|
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 (GES_IS_TEST_CLIP (clip)) {
|
||||||
if (pattern) {
|
if (pattern) {
|
||||||
GEnumClass *enum_class =
|
GEnumClass *enum_class =
|
||||||
|
|
Loading…
Reference in a new issue