From 73c6f213c76cd7d512afd55a4b9c7fd2eafab1da Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 8 Sep 2009 19:46:54 +0200 Subject: [PATCH] examples: Add timeline to pipeline and set it to playing. ... and now we need to go an fix playsink :) --- tests/examples/test1.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/examples/test1.c b/tests/examples/test1.c index c96f23d2be..b3b0ba0d20 100644 --- a/tests/examples/test1.c +++ b/tests/examples/test1.c @@ -73,5 +73,12 @@ main (int argc, gchar ** argv) ges_timeline_layer_add_object (layer, (GESTimelineObject *) src2); ges_timeline_layer_add_object (layer, (GESTimelineObject *) src3); + if (!ges_timeline_pipeline_add_timeline (pipeline, timeline)) + return -1; + + gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING); + + g_usleep (10 * G_USEC_PER_SEC); + return 0; } -- 2.34.1