mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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
This commit is contained in:
parent
e1d97cfee0
commit
7bb8e6f951
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue