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
This commit is contained in:
Andy Wingo 2001-11-25 15:58:58 +00:00
parent 3bc78f5d9e
commit dd0f953d7f

View 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;