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);