[0.11] gst-editing-services: ges: Define a LAYER_HEIGHT constant in the normal layer
Tim Müller
tpm at kemper.freedesktop.org
Tue Mar 13 13:39:37 PDT 2012
Module: gst-editing-services
Branch: 0.11
Commit: acf8c258ef62277c4fc4860ce624ada1d392a55d
URL: http://cgit.freedesktop.org/gstreamer/gst-editing-services/commit/?id=acf8c258ef62277c4fc4860ce624ada1d392a55d
Author: Thibault Saunier <thibault.saunier at collabora.com>
Date: Thu Jun 2 21:35:59 2011 -0400
ges: Define a LAYER_HEIGHT constant in the normal layer
---
ges/ges-timeline-layer.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ges/ges-timeline-layer.c b/ges/ges-timeline-layer.c
index 3cc057f..003eb3b 100644
--- a/ges/ges-timeline-layer.c
+++ b/ges/ges-timeline-layer.c
@@ -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);
More information about the gstreamer-commits
mailing list