mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
timeline: Do not ripple if resulting duration would be 0
This commit is contained in:
parent
1c2784daa6
commit
22ae41e984
1 changed files with 5 additions and 0 deletions
|
@ -1729,6 +1729,11 @@ ges_timeline_trim_object_simple (GESTimeline * timeline,
|
|||
duration = MAX (0, real_dur);
|
||||
duration = MIN (duration, max_duration - _INPOINT (track_element));
|
||||
|
||||
if (duration == 0) {
|
||||
GST_INFO_OBJECT (timeline, "Duration would be 0, not rippling");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Not moving, avoid overhead */
|
||||
if (duration == _DURATION (track_element)) {
|
||||
GST_DEBUG_OBJECT (track_element, "No change in duration");
|
||||
|
|
Loading…
Reference in a new issue