mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
examples: Add timeline to pipeline and set it to playing.
... and now we need to go an fix playsink :)
This commit is contained in:
parent
57493596cc
commit
73c6f213c7
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue