fix testsuite

Original commit message from CVS:
fix testsuite
This commit is contained in:
Thomas Vander Stichele 2004-07-02 13:29:11 +00:00
parent f54b157806
commit b44d2194c8
7 changed files with 19 additions and 12 deletions

View file

@ -1,3 +1,10 @@
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:

View file

@ -12,10 +12,10 @@ create_pipeline (void)
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;

View file

@ -16,10 +16,10 @@ create_pipeline (void)
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;

View file

@ -30,11 +30,11 @@ main (gint argc, gchar * argv[])
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)));

View file

@ -12,10 +12,10 @@ create_pipeline (void)
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;

View file

@ -16,10 +16,10 @@ create_pipeline (void)
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;

View file

@ -30,11 +30,11 @@ main (gint argc, gchar * argv[])
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)));