mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
structured-interface: Avoid setting invalid clip duration
This commit is contained in:
parent
badede6d1c
commit
43907adc1d
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue