commit to make gstreamer follow the gtk function/macro naming conventions:
[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=10000;
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     fprintf (stderr, "+");
19
20     element = gst_element_factory_make ("tee", "tee");
21     if (!element) 
22       break;
23
24     gst_element_request_pad_by_name (element, "src%d");
25
26     gst_bin_add (GST_BIN (bin), element);
27     gst_bin_remove (GST_BIN (bin), element);
28
29   }
30   fprintf (stderr, "+\n");
31
32   gst_object_unref (GST_OBJECT (bin));
33
34   g_mem_chunk_info ();
35 }