From 22ae41e984ab2d5fbd71b9706067ee43617281e0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 8 Feb 2019 17:37:39 -0300 Subject: [PATCH] timeline: Do not ripple if resulting duration would be 0 --- ges/ges-timeline.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 44eb72b..1a54a40 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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"); -- 2.7.4