+2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * testsuite/cleanup/cleanup1.c: (create_pipeline):
+ * testsuite/cleanup/cleanup2.c: (create_pipeline):
+ * testsuite/cleanup/cleanup4.c: (main):
+ fix testsuite
+
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* libs/gst/control/control.c:
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
fakesink = gst_element_factory_make ("fakesink", "fakesink");
- gst_element_link (fakesrc, fakesink);
-
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
+ gst_element_link (fakesrc, fakesink);
+
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
return pipeline;
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
"sink");
- gst_element_link (fakesrc, bin);
-
gst_bin_add_many (GST_BIN (pipeline), fakesrc, bin, NULL);
+ gst_element_link (fakesrc, bin);
+
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
return pipeline;
fakesink = gst_element_factory_make ("fakesink", "fakesink");
- gst_element_link (fakesrc, fakesink);
-
gst_bin_add (GST_BIN (bin), fakesink);
gst_bin_add (GST_BIN (pipeline), bin);
+ gst_element_link (fakesrc, fakesink);
+
gst_element_set_state (pipeline, GST_STATE_PLAYING);
while (gst_bin_iterate (GST_BIN (pipeline)));
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
fakesink = gst_element_factory_make ("fakesink", "fakesink");
- gst_element_link (fakesrc, fakesink);
-
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
+ gst_element_link (fakesrc, fakesink);
+
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
return pipeline;
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
"sink");
- gst_element_link (fakesrc, bin);
-
gst_bin_add_many (GST_BIN (pipeline), fakesrc, bin, NULL);
+ gst_element_link (fakesrc, bin);
+
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
return pipeline;
fakesink = gst_element_factory_make ("fakesink", "fakesink");
- gst_element_link (fakesrc, fakesink);
-
gst_bin_add (GST_BIN (bin), fakesink);
gst_bin_add (GST_BIN (pipeline), bin);
+ gst_element_link (fakesrc, fakesink);
+
gst_element_set_state (pipeline, GST_STATE_PLAYING);
while (gst_bin_iterate (GST_BIN (pipeline)));