mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
ges-group: Properly check for integer underflows
error: comparison of unsigned expression < 0 is always false
This commit is contained in:
parent
92e595718a
commit
f88cc0f433
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ _child_group_priority_changed (GESTimelineElement * child,
|
||||||
|
|
||||||
offset = _ges_container_get_priority_offset (container, child);
|
offset = _ges_container_get_priority_offset (container, child);
|
||||||
|
|
||||||
if (_PRIORITY (group) + offset < 0 ||
|
if (_PRIORITY (group) < offset ||
|
||||||
(GES_TIMELINE_ELEMENT_TIMELINE (group) &&
|
(GES_TIMELINE_ELEMENT_TIMELINE (group) &&
|
||||||
_PRIORITY (group) + offset + GES_CONTAINER_HEIGHT (group) >
|
_PRIORITY (group) + offset + GES_CONTAINER_HEIGHT (group) >
|
||||||
g_list_length (GES_TIMELINE_ELEMENT_TIMELINE (group)->layers))) {
|
g_list_length (GES_TIMELINE_ELEMENT_TIMELINE (group)->layers))) {
|
||||||
|
|
Loading…
Reference in a new issue