2002-01-27 19:24:23 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
int main(int argc,char *argv[])
|
|
|
|
{
|
2002-01-27 19:29:57 +00:00
|
|
|
GstElement *bin, *element;
|
|
|
|
gint i=10000;
|
2002-01-27 19:24:23 +00:00
|
|
|
|
2002-01-27 22:10:10 +00:00
|
|
|
free (malloc(8)); /* -lefence */
|
|
|
|
|
2002-01-27 19:29:57 +00:00
|
|
|
gst_init (&argc, &argv);
|
2002-01-27 19:24:23 +00:00
|
|
|
|
2002-01-27 22:10:10 +00:00
|
|
|
g_mem_chunk_info ();
|
|
|
|
|
2002-01-27 19:29:57 +00:00
|
|
|
bin = gst_pipeline_new ("pipeline");
|
2002-01-27 19:24:23 +00:00
|
|
|
|
2002-01-27 19:29:57 +00:00
|
|
|
while (i--)
|
2002-01-27 19:24:23 +00:00
|
|
|
{
|
2002-01-27 22:10:10 +00:00
|
|
|
fprintf (stderr, "+");
|
|
|
|
|
2002-01-27 19:29:57 +00:00
|
|
|
element = gst_elementfactory_make ("tee", "tee");
|
|
|
|
if (!element)
|
2002-01-27 19:24:23 +00:00
|
|
|
break;
|
|
|
|
|
2002-01-27 19:29:57 +00:00
|
|
|
gst_element_request_pad_by_name (element, "src%d");
|
|
|
|
|
|
|
|
gst_bin_add (GST_BIN (bin), element);
|
|
|
|
gst_bin_remove (GST_BIN (bin), element);
|
2002-01-27 22:10:10 +00:00
|
|
|
|
2002-01-27 19:24:23 +00:00
|
|
|
}
|
2002-01-27 22:10:10 +00:00
|
|
|
fprintf (stderr, "+\n");
|
|
|
|
|
|
|
|
gst_object_unref (GST_OBJECT (bin));
|
|
|
|
|
|
|
|
g_mem_chunk_info ();
|
2002-01-27 19:24:23 +00:00
|
|
|
}
|