Revision 21005,
703 bytes
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21004,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #include <gst/gst.h> |
---|
2 | |
---|
3 | int |
---|
4 | main (int argc, char *argv[]) |
---|
5 | { |
---|
6 | GstElement *bin, *element; |
---|
7 | gint i = 1000; |
---|
8 | gint step = 100; |
---|
9 | |
---|
10 | |
---|
11 | free (malloc (8)); /* -lefence */ |
---|
12 | |
---|
13 | gst_init (&argc, &argv); |
---|
14 | |
---|
15 | g_mem_chunk_info (); |
---|
16 | |
---|
17 | bin = gst_pipeline_new ("pipeline"); |
---|
18 | |
---|
19 | while (i--) { |
---|
20 | GstPad *pad; |
---|
21 | |
---|
22 | if (i % step == 0) |
---|
23 | fprintf (stderr, "\r%10d", i); |
---|
24 | |
---|
25 | element = gst_element_factory_make ("tee", "tee"); |
---|
26 | if (!element) |
---|
27 | break; |
---|
28 | |
---|
29 | pad = gst_element_get_request_pad (element, "src%d"); |
---|
30 | |
---|
31 | gst_bin_add (GST_BIN (bin), element); |
---|
32 | gst_bin_remove (GST_BIN (bin), element); |
---|
33 | |
---|
34 | } |
---|
35 | fprintf (stderr, "+\n"); |
---|
36 | |
---|
37 | gst_object_unref (GST_OBJECT (bin)); |
---|
38 | |
---|
39 | g_mem_chunk_info (); |
---|
40 | return 0; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.