Totally rewritten registry handling.
[platform/upstream/gstreamer.git] / tests / old / testsuite / cleanup / cleanup5.c
1 #include <gst/gst.h>
2
3 int main(int argc,char *argv[]) 
4 {
5   GstElement *bin, *element;
6   gint i=1000000;
7
8   free (malloc(8)); /* -lefence */
9
10   gst_init (&argc, &argv);
11
12   g_mem_chunk_info ();
13
14   bin = gst_pipeline_new ("pipeline");
15
16   while (i--)
17   {
18     GstPad *pad;
19
20     fprintf (stderr, "+");
21
22     element = gst_element_factory_make ("tee", "tee");
23     if (!element) 
24       break;
25
26     pad = gst_element_request_pad_by_name (element, "src%d");
27
28     gst_bin_add (GST_BIN (bin), element);
29     gst_bin_remove (GST_BIN (bin), element);
30
31   }
32   fprintf (stderr, "+\n");
33
34   gst_object_unref (GST_OBJECT (bin));
35
36   g_mem_chunk_info ();
37 }