mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
ges: remove comparison of unsigned inferior to 0
COVERITY CID 1139769
This commit is contained in:
parent
6d68f55c63
commit
8015359f16
1 changed files with 1 additions and 2 deletions
|
@ -1408,8 +1408,7 @@ ges_timeline_trim_object_simple (GESTimeline * timeline,
|
||||||
|
|
||||||
/* Calculate new values */
|
/* Calculate new values */
|
||||||
position = MIN (position, start + duration);
|
position = MIN (position, start + duration);
|
||||||
inpoint =
|
inpoint = inpoint + position > start ? inpoint + position - start : 0;
|
||||||
MAX (0, inpoint + position > start ? inpoint + position - start : 0);
|
|
||||||
|
|
||||||
real_dur = _END (element) - position;
|
real_dur = _END (element) - position;
|
||||||
/* FIXME: Why CLAMP (0, real_dur, max_duration) doesn't work? */
|
/* FIXME: Why CLAMP (0, real_dur, max_duration) doesn't work? */
|
||||||
|
|
Loading…
Reference in a new issue