examples: Add timeline to pipeline and set it to playing.

... and now we need to go an fix playsink :)
This commit is contained in:
Edward Hervey 2009-09-08 19:46:54 +02:00
parent 57493596cc
commit 73c6f213c7

View file

@ -73,5 +73,12 @@ main (int argc, gchar ** argv)
ges_timeline_layer_add_object (layer, (GESTimelineObject *) src2); ges_timeline_layer_add_object (layer, (GESTimelineObject *) src2);
ges_timeline_layer_add_object (layer, (GESTimelineObject *) src3); 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; return 0;
} }