mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-25 13:30:31 +00:00
make the test have output
Original commit message from CVS: make the test have output
This commit is contained in:
parent
0a8603e20a
commit
49ae4007af
2 changed files with 24 additions and 0 deletions
|
@ -5,12 +5,18 @@ int main(int argc,char *argv[])
|
||||||
GstElement *bin, *element;
|
GstElement *bin, *element;
|
||||||
gint i=10000;
|
gint i=10000;
|
||||||
|
|
||||||
|
free (malloc(8)); /* -lefence */
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
g_mem_chunk_info ();
|
||||||
|
|
||||||
bin = gst_pipeline_new ("pipeline");
|
bin = gst_pipeline_new ("pipeline");
|
||||||
|
|
||||||
while (i--)
|
while (i--)
|
||||||
{
|
{
|
||||||
|
fprintf (stderr, "+");
|
||||||
|
|
||||||
element = gst_elementfactory_make ("tee", "tee");
|
element = gst_elementfactory_make ("tee", "tee");
|
||||||
if (!element)
|
if (!element)
|
||||||
break;
|
break;
|
||||||
|
@ -19,5 +25,11 @@ int main(int argc,char *argv[])
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (bin), element);
|
gst_bin_add (GST_BIN (bin), element);
|
||||||
gst_bin_remove (GST_BIN (bin), element);
|
gst_bin_remove (GST_BIN (bin), element);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
fprintf (stderr, "+\n");
|
||||||
|
|
||||||
|
gst_object_unref (GST_OBJECT (bin));
|
||||||
|
|
||||||
|
g_mem_chunk_info ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,12 +5,18 @@ int main(int argc,char *argv[])
|
||||||
GstElement *bin, *element;
|
GstElement *bin, *element;
|
||||||
gint i=10000;
|
gint i=10000;
|
||||||
|
|
||||||
|
free (malloc(8)); /* -lefence */
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
g_mem_chunk_info ();
|
||||||
|
|
||||||
bin = gst_pipeline_new ("pipeline");
|
bin = gst_pipeline_new ("pipeline");
|
||||||
|
|
||||||
while (i--)
|
while (i--)
|
||||||
{
|
{
|
||||||
|
fprintf (stderr, "+");
|
||||||
|
|
||||||
element = gst_elementfactory_make ("tee", "tee");
|
element = gst_elementfactory_make ("tee", "tee");
|
||||||
if (!element)
|
if (!element)
|
||||||
break;
|
break;
|
||||||
|
@ -19,5 +25,11 @@ int main(int argc,char *argv[])
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (bin), element);
|
gst_bin_add (GST_BIN (bin), element);
|
||||||
gst_bin_remove (GST_BIN (bin), element);
|
gst_bin_remove (GST_BIN (bin), element);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
fprintf (stderr, "+\n");
|
||||||
|
|
||||||
|
gst_object_unref (GST_OBJECT (bin));
|
||||||
|
|
||||||
|
g_mem_chunk_info ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue