From bcf734a4199af8d92cf3ec982d1b1bee89c6ac03 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Thu, 27 May 2010 12:06:00 +0200 Subject: [PATCH] tests/examples/playlist.c: add transitions to playlist example --- tests/examples/playlist.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/examples/playlist.c b/tests/examples/playlist.c index d07ff70774..586b4de897 100644 --- a/tests/examples/playlist.c +++ b/tests/examples/playlist.c @@ -166,6 +166,19 @@ create_timeline (int nbargs, gchar ** argv) arg0, GST_TIME_ARGS (duration)); } + else if (!g_strcmp0 ("+transition", source)) { + src = GES_TIMELINE_SOURCE (ges_timeline_transition_new_for_nick (arg0)); + + if (!src) + g_error ("invalid transition type\n"); + + g_object_set (G_OBJECT (src), "duration", duration, NULL); + + g_print ("Adding duration %" GST_TIME_FORMAT "\n", + arg0, GST_TIME_ARGS (duration)); + + } + else { gchar *uri = g_strdup_printf ("file://%s", source); guint64 inpoint = atoi (argv[i * 3 + 1]) * GST_SECOND;