ges: Fix 'comparison of unsigned expression < 0 is always false'

This commit is contained in:
Sebastian Dröge 2012-03-06 15:35:51 +01:00
parent 7c80521e0b
commit 70fda7d45d

View 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,