mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 05:16:36 +00:00
132f776069
Original commit message from CVS: Use a core element (tee) for this testcase
23 lines
426 B
C
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);
|
|
}
|
|
}
|