projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c2784d
)
timeline: Do not ripple if resulting duration would be 0
author
Thibault Saunier
<tsaunier@igalia.com>
Fri, 8 Feb 2019 20:37:39 +0000
(17:37 -0300)
committer
Thibault Saunier
<tsaunier@gnome.org>
Fri, 15 Mar 2019 23:51:55 +0000
(23:51 +0000)
ges/ges-timeline.c
patch
|
blob
|
history
diff --git
a/ges/ges-timeline.c
b/ges/ges-timeline.c
index 44eb72bdd9a8e4071df84b8a47be2f2a894d03c9..1a54a40128c644506f540b6e5ec2599442bbaeb6 100644
(file)
--- 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");