summaryrefslogtreecommitdiff
path: root/tests/sched
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2001-11-25 15:58:58 +0000
committerAndy Wingo <wingo@pobox.com>2001-11-25 15:58:58 +0000
commitdd0f953d7f443006fc5c59babffc1abfd1be6577 (patch)
treee54ad76f7b0a978254efcc25db48162e29f46335 /tests/sched
parent3bc78f5d9e60c9ce6b8849b900408309b1c1a4e5 (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.c6
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;