fixed mainloop for non-glib2 this is a hack, we really need to fix this properly...
authorAndy Wingo <wingo@pobox.com>
Sun, 25 Nov 2001 15:58:58 +0000 (15:58 +0000)
committerAndy Wingo <wingo@pobox.com>
Sun, 25 Nov 2001 15:58:58 +0000 (15:58 +0000)
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

tests/sched/dynamic-pipeline.c

index 6251bd9..6308df8 100644 (file)
@@ -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;