From 70fda7d45dcc0cee75ae48148cf8c89cd629c9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 6 Mar 2012 15:35:51 +0100 Subject: [PATCH] ges: Fix 'comparison of unsigned expression < 0 is always false' --- ges/ges-timeline-object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c index dceaadc9aa..154ecdf5ec 100644 --- a/ges/ges-timeline-object.c +++ b/ges/ges-timeline-object.c @@ -1566,8 +1566,7 @@ track_object_priority_changed_cb (GESTrackObject * child, } else if (tck_priority < layer_min_gnl_prio + object->priority) { /* Or update the parent priority, the object priority is always the * highest priority (smaller number) */ - if (tck_priority - layer_min_gnl_prio < 0 || - layer_max_gnl_prio - tck_priority < 0) { + if (tck_priority < layer_min_gnl_prio || layer_max_gnl_prio < tck_priority) { GST_WARNING ("%p priority of %i, is outside of its containing " "layer space. (%d/%d). This is a bug in the program.", object,