From: Mathieu Duponchelle Date: Fri, 26 Aug 2011 16:39:39 +0000 (+0200) Subject: ges: make the offset positive as it should have been X-Git-Tag: 1.19.3~493^2~2221^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bb8e6f9515aef4d83d75ae8f623a7c3bbdafc07;p=platform%2Fupstream%2Fgstreamer.git ges: make the offset positive as it should have been Took me two days to figure that out :/ I'm pretty sure it's the way things are supposed to be --- diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c index 2792afaa2a..45208c5f92 100644 --- a/ges/ges-timeline-object.c +++ b/ges/ges-timeline-object.c @@ -866,7 +866,7 @@ ges_timeline_object_set_priority_internal (GESTimelineObject * object, } else { /* ... or update the offset */ - map->priority_offset = layer_min_gnl_prio + priority - tr->priority; + map->priority_offset = tr->priority - layer_min_gnl_prio + priority; } } @@ -1464,7 +1464,7 @@ track_object_priority_changed_cb (GESTrackObject * child, /* Update the internal priority_offset */ map->priority_offset = - (layer_min_gnl_prio + object->priority) - tck_priority; + tck_priority - (layer_min_gnl_prio + object->priority); } else if (tck_priority < layer_min_gnl_prio + object->priority) { /* Or update the parent priority, the object priority is always the