mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
ges: Define a LAYER_HEIGHT constant in the normal layer
This commit is contained in:
parent
3f41e81022
commit
acf8c258ef
1 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,8 @@
|
|||
#include "ges-timeline-layer.h"
|
||||
#include "ges.h"
|
||||
|
||||
#define LAYER_HEIGHT 10
|
||||
|
||||
G_DEFINE_TYPE (GESTimelineLayer, ges_timeline_layer, G_TYPE_INITIALLY_UNOWNED);
|
||||
|
||||
struct _GESTimelineLayerPrivate
|
||||
|
@ -361,8 +363,8 @@ ges_timeline_layer_set_priority (GESTimelineLayer * layer, guint priority)
|
|||
|
||||
if (priority != layer->priv->priority) {
|
||||
layer->priv->priority = priority;
|
||||
layer->min_gnl_priority = (priority * 10);
|
||||
layer->max_gnl_priority = ((priority + 1) * 10) - 1;
|
||||
layer->min_gnl_priority = (priority * LAYER_HEIGHT);
|
||||
layer->max_gnl_priority = ((priority + 1) * LAYER_HEIGHT) - 1;
|
||||
|
||||
/* FIXME : Update controlled object's gnl priority accordingly */
|
||||
ges_timeline_layer_resync_priorities (layer);
|
||||
|
|
Loading…
Reference in a new issue