From 46912100302876cd8ee3ea5758f0083b05ac2f1d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 25 Sep 2014 15:30:55 +0200 Subject: [PATCH] ges-validate: Add support for Layer.auto-transition + Fix a bug where the mandatory field name for the name of the clip to remove in remove-clip did not correspond to what we used in the action (clip-name vs name). --- tools/ges-validate.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/ges-validate.c b/tools/ges-validate.c index 03529eeb76..e94218be70 100644 --- a/tools/ges-validate.c +++ b/tools/ges-validate.c @@ -206,7 +206,7 @@ _add_layer (GstValidateScenario * scenario, GstValidateAction * action) GESTimeline *timeline = get_timeline (scenario); GESLayer *layer; gint priority; - gboolean res = FALSE; + gboolean res = FALSE, auto_transition = FALSE; if (!gst_structure_get_int (action->structure, "priority", &priority)) { GST_ERROR ("priority is needed when adding a layer"); @@ -223,8 +223,12 @@ _add_layer (GstValidateScenario * scenario, GstValidateAction * action) goto beach; } + gst_structure_get_boolean (action->structure, "auto-transition", + &auto_transition); + layer = ges_layer_new (); - g_object_set (layer, "priority", priority, NULL); + g_object_set (layer, "priority", priority, "auto-transition", auto_transition, + NULL); res = ges_timeline_add_layer (timeline, layer); beach: @@ -579,6 +583,13 @@ ges_validate_register_action_types (void) .mandatory = TRUE, NULL }, + { + .name = "auto-transition", + .description = "Wheter auto-transition is activated on the new layer.", + .mandatory = FALSE, + .types="boolean", + .def = "False" + }, { NULL } }, "Allows to remove a layer from the current timeline", FALSE); @@ -633,7 +644,7 @@ ges_validate_register_action_types (void) gst_validate_register_action_type ("remove-clip", "ges", _remove_clip, (GstValidateActionParameter []) { { - .name = "clip-name", + .name = "name", .description = "The name of the clip to remove", .types = "string", .mandatory = TRUE,