From 761067b6859cb2252c2e2cefcf3498293bde50ee Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 19 Feb 2015 19:29:36 +0100 Subject: [PATCH] structure-interface: rename layer-priority to layer. + And add a short name for it in ges-launch. --- ges/ges-structured-interface.c | 2 ++ tools/ges-launch.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ges/ges-structured-interface.c b/ges/ges-structured-interface.c index 387a6cfbdc..746549407e 100644 --- a/ges/ges-structured-interface.c +++ b/ges/ges-structured-interface.c @@ -206,6 +206,8 @@ _ges_add_clip_from_struct (GESTimeline * timeline, GstStructure * structure, TRY_GET ("name", G_TYPE_STRING, &name, NULL); TRY_GET ("layer-priority", G_TYPE_INT, &layer_priority, g_list_length (timeline->layers)); + TRY_GET ("layer", G_TYPE_INT, &layer_priority, + g_list_length (timeline->layers)); TRY_GET ("type", G_TYPE_STRING, &type_string, "GESUriClip"); TRY_GET ("start", GST_TYPE_CLOCK_TIME, &start, 0); TRY_GET ("inpoint", GST_TYPE_CLOCK_TIME, &inpoint, 0); diff --git a/tools/ges-launch.c b/tools/ges-launch.c index f82dde92f6..a32814c01c 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -290,6 +290,7 @@ _add_clip (GESTimeline * timeline, GstStructure * structure, GError ** error) {"duration", "d", GST_TYPE_CLOCK_TIME, NULL}, {"inpoint", "i", GST_TYPE_CLOCK_TIME, NULL}, {"track-types", "tt", 0, NULL}, + {"layer", "l", 0, NULL}, {NULL}, };