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 19:29:57 +00:00
|
|
|
gst_init (&argc, &argv);
|
2002-01-27 19:24:23 +00:00
|
|
|
|
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 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 19:24:23 +00:00
|
|
|
}
|
|
|
|
}
|