mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 06:31:08 +00:00
fix testsuite
Original commit message from CVS: fix testsuite
This commit is contained in:
parent
f54b157806
commit
b44d2194c8
7 changed files with 19 additions and 12 deletions
|
@ -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>
|
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* libs/gst/control/control.c:
|
* libs/gst/control/control.c:
|
||||||
|
|
|
@ -12,10 +12,10 @@ create_pipeline (void)
|
||||||
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
|
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
|
||||||
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, fakesink);
|
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
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);
|
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
|
||||||
|
|
||||||
return pipeline;
|
return pipeline;
|
||||||
|
|
|
@ -16,10 +16,10 @@ create_pipeline (void)
|
||||||
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
|
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
|
||||||
"sink");
|
"sink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, bin);
|
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, bin, NULL);
|
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);
|
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
|
||||||
|
|
||||||
return pipeline;
|
return pipeline;
|
||||||
|
|
|
@ -30,11 +30,11 @@ main (gint argc, gchar * argv[])
|
||||||
|
|
||||||
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, fakesink);
|
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (bin), fakesink);
|
gst_bin_add (GST_BIN (bin), fakesink);
|
||||||
gst_bin_add (GST_BIN (pipeline), bin);
|
gst_bin_add (GST_BIN (pipeline), bin);
|
||||||
|
|
||||||
|
gst_element_link (fakesrc, fakesink);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
||||||
while (gst_bin_iterate (GST_BIN (pipeline)));
|
while (gst_bin_iterate (GST_BIN (pipeline)));
|
||||||
|
|
|
@ -12,10 +12,10 @@ create_pipeline (void)
|
||||||
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
|
fakesrc = gst_element_factory_make ("fakesrc", "fakesrc");
|
||||||
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, fakesink);
|
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
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);
|
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
|
||||||
|
|
||||||
return pipeline;
|
return pipeline;
|
||||||
|
|
|
@ -16,10 +16,10 @@ create_pipeline (void)
|
||||||
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
|
gst_element_add_ghost_pad (bin, gst_element_get_pad (fakesink, "sink"),
|
||||||
"sink");
|
"sink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, bin);
|
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, bin, NULL);
|
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);
|
g_object_set (G_OBJECT (fakesrc), "num_buffers", 5, NULL);
|
||||||
|
|
||||||
return pipeline;
|
return pipeline;
|
||||||
|
|
|
@ -30,11 +30,11 @@ main (gint argc, gchar * argv[])
|
||||||
|
|
||||||
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
fakesink = gst_element_factory_make ("fakesink", "fakesink");
|
||||||
|
|
||||||
gst_element_link (fakesrc, fakesink);
|
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (bin), fakesink);
|
gst_bin_add (GST_BIN (bin), fakesink);
|
||||||
gst_bin_add (GST_BIN (pipeline), bin);
|
gst_bin_add (GST_BIN (pipeline), bin);
|
||||||
|
|
||||||
|
gst_element_link (fakesrc, fakesink);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
||||||
while (gst_bin_iterate (GST_BIN (pipeline)));
|
while (gst_bin_iterate (GST_BIN (pipeline)));
|
||||||
|
|
Loading…
Reference in a new issue