projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d68f55
)
ges: remove comparison of unsigned inferior to 0
author
Thibault Saunier
<tsaunier@gnome.org>
Sat, 10 May 2014 20:09:31 +0000
(22:09 +0200)
committer
Thibault Saunier
<tsaunier@gnome.org>
Sat, 10 May 2014 20:14:34 +0000
(22:14 +0200)
COVERITY CID 1139769
ges/ges-timeline.c
patch
|
blob
|
history
diff --git
a/ges/ges-timeline.c
b/ges/ges-timeline.c
index
ae807ad
..
3540b2d
100644
(file)
--- a/
ges/ges-timeline.c
+++ b/
ges/ges-timeline.c
@@
-1408,8
+1408,7
@@
ges_timeline_trim_object_simple (GESTimeline * timeline,
/* Calculate new values */
position = MIN (position, start + duration);
- inpoint =
- MAX (0, inpoint + position > start ? inpoint + position - start : 0);
+ inpoint = inpoint + position > start ? inpoint + position - start : 0;
real_dur = _END (element) - position;
/* FIXME: Why CLAMP (0, real_dur, max_duration) doesn't work? */