structure-interface: rename layer-priority to layer.

+ And add a short name for it in ges-launch.
This commit is contained in:
Mathieu Duponchelle 2015-02-19 19:29:36 +01:00 committed by Thibault Saunier
parent 396196dfdf
commit 761067b685
2 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -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},
};