ges: Fix 'comparison of unsigned expression < 0 is always false'
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 14:35:51 +0000 (15:35 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 14:35:51 +0000 (15:35 +0100)
ges/ges-timeline-object.c

index dceaadc..154ecdf 100644 (file)
@@ -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,