Revision 21448,
486 bytes
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21447,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #include <unistd.h> |
---|
2 | #include <gst/gst.h> |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | static gpointer |
---|
7 | iterate_bin (GstBin * bin) |
---|
8 | { |
---|
9 | while (TRUE) { |
---|
10 | gst_bin_iterate (bin); |
---|
11 | } |
---|
12 | return NULL; |
---|
13 | } |
---|
14 | |
---|
15 | int |
---|
16 | main (int argc, char **argv) |
---|
17 | { |
---|
18 | gint i; |
---|
19 | GstElement *bin; |
---|
20 | |
---|
21 | gst_init (&argc, &argv); |
---|
22 | |
---|
23 | for (i = 0; i < 20; i++) { |
---|
24 | bin = gst_element_factory_make ("bin", "bin"); |
---|
25 | gst_scheduler_factory_make (NULL, GST_ELEMENT (bin)); |
---|
26 | |
---|
27 | g_thread_create ((GThreadFunc) iterate_bin, bin, TRUE, NULL); |
---|
28 | } |
---|
29 | |
---|
30 | sleep (5); |
---|
31 | |
---|
32 | return 0; |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.