mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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:
parent
3bc78f5d9e
commit
dd0f953d7f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue