6 GstElement *fakesrc, *fakesink;
10 pipeline = gst_pipeline_new ("main_pipeline");
12 fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
13 fakesink = gst_element_factory_make ("fakesink", "fakesink");
15 gst_element_link (fakesrc, fakesink);
17 gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
19 g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
25 main (gint argc, gchar * argv[])
31 free (malloc (8)); /* -lefence */
33 gst_init (&argc, &argv);
38 fprintf (stderr, "%10d\r", i);
39 pipeline = create_pipeline ();
41 gst_element_set_state (pipeline, GST_STATE_PLAYING);
43 while (gst_bin_iterate (GST_BIN (pipeline)));
45 gst_element_set_state (pipeline, GST_STATE_NULL);
47 gst_element_set_state (pipeline, GST_STATE_PLAYING);
49 while (gst_bin_iterate (GST_BIN (pipeline)));
51 gst_element_set_state (pipeline, GST_STATE_NULL);
53 gst_object_unref (GST_OBJECT (pipeline));
56 fprintf (stderr, "\n");