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:
92e5957
)
ges-group: Properly check for integer underflows
author
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Feb 2014 19:19:53 +0000
(20:19 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Sat, 8 Feb 2014 19:19:53 +0000
(20:19 +0100)
error: comparison of unsigned expression < 0 is always false
ges/ges-group.c
patch
|
blob
|
history
diff --git
a/ges/ges-group.c
b/ges/ges-group.c
index
5bbc6cb
..
f30b9c9
100644
(file)
--- a/
ges/ges-group.c
+++ b/
ges/ges-group.c
@@
-162,7
+162,7
@@
_child_group_priority_changed (GESTimelineElement * child,
offset = _ges_container_get_priority_offset (container, child);
- if (_PRIORITY (group)
+ offset < 0
||
+ if (_PRIORITY (group)
< offset
||
(GES_TIMELINE_ELEMENT_TIMELINE (group) &&
_PRIORITY (group) + offset + GES_CONTAINER_HEIGHT (group) >
g_list_length (GES_TIMELINE_ELEMENT_TIMELINE (group)->layers))) {