mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ges: Bump layer height from 10 to 1000
This commit is contained in:
parent
4d802c1241
commit
826d4f9a71
2 changed files with 6 additions and 6 deletions
|
@ -34,7 +34,7 @@
|
||||||
#include "ges.h"
|
#include "ges.h"
|
||||||
#include "ges-timeline-source.h"
|
#include "ges-timeline-source.h"
|
||||||
|
|
||||||
#define LAYER_HEIGHT 10
|
#define LAYER_HEIGHT 1000
|
||||||
|
|
||||||
static void
|
static void
|
||||||
track_object_removed_cb (GESTimelineObject * object,
|
track_object_removed_cb (GESTimelineObject * object,
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <ges/ges.h>
|
#include <ges/ges.h>
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
#define LAYER_HEIGHT 10
|
#define LAYER_HEIGHT 1000
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
my_fill_track_func (GESTimelineObject * object,
|
my_fill_track_func (GESTimelineObject * object,
|
||||||
|
@ -120,14 +120,14 @@ GST_START_TEST (test_layer_properties)
|
||||||
assert_equals_int (ges_timeline_layer_get_priority (layer), 1);
|
assert_equals_int (ges_timeline_layer_get_priority (layer), 1);
|
||||||
assert_equals_uint64 (GES_TIMELINE_OBJECT_PRIORITY (object), 0);
|
assert_equals_uint64 (GES_TIMELINE_OBJECT_PRIORITY (object), 0);
|
||||||
gnl_object_check (ges_track_object_get_gnlobject (trackobject), 42, 51, 12,
|
gnl_object_check (ges_track_object_get_gnlobject (trackobject), 42, 51, 12,
|
||||||
51, 10, TRUE);
|
51, LAYER_HEIGHT, TRUE);
|
||||||
|
|
||||||
/* Change it to an insanely high value */
|
/* Change it to an insanely high value */
|
||||||
g_object_set (layer, "priority", 1000000, NULL);
|
g_object_set (layer, "priority", 31, NULL);
|
||||||
assert_equals_int (ges_timeline_layer_get_priority (layer), 1000000);
|
assert_equals_int (ges_timeline_layer_get_priority (layer), 31);
|
||||||
assert_equals_uint64 (GES_TIMELINE_OBJECT_PRIORITY (object), 0);
|
assert_equals_uint64 (GES_TIMELINE_OBJECT_PRIORITY (object), 0);
|
||||||
gnl_object_check (ges_track_object_get_gnlobject (trackobject), 42, 51, 12,
|
gnl_object_check (ges_track_object_get_gnlobject (trackobject), 42, 51, 12,
|
||||||
51, 10000000, TRUE);
|
51, LAYER_HEIGHT * 31, TRUE);
|
||||||
|
|
||||||
/* and back to 0 */
|
/* and back to 0 */
|
||||||
g_object_set (layer, "priority", 0, NULL);
|
g_object_set (layer, "priority", 0, NULL);
|
||||||
|
|
Loading…
Reference in a new issue