gst-editing-services: ges: make the offset positive as it should have been

Thibault Saunier tsaunier at kemper.freedesktop.org
Wed Jan 11 07:04:32 PST 2012


Module: gst-editing-services
Branch: master
Commit: 7bb8e6f9515aef4d83d75ae8f623a7c3bbdafc07
URL:    http://cgit.freedesktop.org/gstreamer/gst-editing-services/commit/?id=7bb8e6f9515aef4d83d75ae8f623a7c3bbdafc07

Author: Mathieu Duponchelle <seeed at laposte.net>
Date:   Fri Aug 26 18:39:39 2011 +0200

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

---

 ges/ges-timeline-object.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ges/ges-timeline-object.c b/ges/ges-timeline-object.c
index 2792afa..45208c5 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



More information about the gstreamer-commits mailing list