diff options
author | Andy Wingo <wingo@pobox.com> | 2001-11-25 15:58:58 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2001-11-25 15:58:58 +0000 |
commit | dd0f953d7f443006fc5c59babffc1abfd1be6577 (patch) | |
tree | e54ad76f7b0a978254efcc25db48162e29f46335 /tests/sched | |
parent | 3bc78f5d9e60c9ce6b8849b900408309b1c1a4e5 (diff) |
fixed mainloop for non-glib2 this is a hack, we really need to fix this properly so i don't have to do this in every ...
Original commit message from CVS:
fixed mainloop for non-glib2
this is a hack, we really need to fix this properly so i don't have to do this in every file
Diffstat (limited to 'tests/sched')
-rw-r--r-- | tests/sched/dynamic-pipeline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/sched/dynamic-pipeline.c b/tests/sched/dynamic-pipeline.c index 6251bd953..6308df8b3 100644 --- a/tests/sched/dynamic-pipeline.c +++ b/tests/sched/dynamic-pipeline.c @@ -52,7 +52,11 @@ int main (int argc, char *argv[]) gst_element_set_state(pipe2, GST_STATE_PLAYING); g_idle_add(idle_func, pipe2); - g_main_loop_run(g_main_loop_new(NULL, FALSE)); +#ifdef USE_GLIB2 + g_main_loop_run (g_main_loop_new (NULL, FALSE)); +#else + gst_main(); +#endif gst_element_set_state(pipe2, GST_STATE_NULL); return 0; |