From 43907adc1dd72bafc8e4855e80317b10ab920c47 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 30 Jul 2019 18:22:18 -0700 Subject: [PATCH] structured-interface: Avoid setting invalid clip duration --- ges/ges-structured-interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ges/ges-structured-interface.c b/ges/ges-structured-interface.c index 04ad5be261..61fe611b6d 100644 --- a/ges/ges-structured-interface.c +++ b/ges/ges-structured-interface.c @@ -456,6 +456,11 @@ _ges_add_clip_from_struct (GESTimeline * timeline, GstStructure * structure, goto beach; } + if (GES_IS_URI_CLIP_ASSET (asset) && !GST_CLOCK_TIME_IS_VALID (duration)) { + duration = GST_CLOCK_DIFF (inpoint, + ges_uri_clip_asset_get_duration (GES_URI_CLIP_ASSET (asset))); + } + clip = ges_layer_add_asset (layer, asset, start, inpoint, duration, track_types);