4 main (gint argc, gchar * argv[])
10 free (malloc (8)); /* -lefence */
12 gst_init (&argc, &argv);
16 pipeline = gst_pipeline_new ("main_pipeline");
18 fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
19 g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
20 gst_bin_add (GST_BIN (pipeline), fakesrc);
29 bin = gst_bin_new ("bin");
31 fakesink = gst_element_factory_make ("fakesink", "fakesink");
33 gst_element_link (fakesrc, fakesink);
35 gst_bin_add (GST_BIN (bin), fakesink);
36 gst_bin_add (GST_BIN (pipeline), bin);
38 gst_element_set_state (pipeline, GST_STATE_PLAYING);
40 while (gst_bin_iterate (GST_BIN (pipeline)));
42 gst_element_set_state (pipeline, GST_STATE_NULL);
45 gst_bin_remove (GST_BIN (pipeline), GST_ELEMENT (bin));