gstreamer/testsuite/cleanup/cleanup5.c
Wim Taymans 132f776069 Use a core element (tee) for this testcase
Original commit message from CVS:
Use a core element (tee) for this testcase
2002-01-27 19:29:57 +00:00

23 lines
426 B
C

#include <gst/gst.h>
int main(int argc,char *argv[])
{
GstElement *bin, *element;
gint i=10000;
gst_init (&argc, &argv);
bin = gst_pipeline_new ("pipeline");
while (i--)
{
element = gst_elementfactory_make ("tee", "tee");
if (!element)
break;
gst_element_request_pad_by_name (element, "src%d");
gst_bin_add (GST_BIN (bin), element);
gst_bin_remove (GST_BIN (bin), element);
}
}