mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 23:59:55 +00:00
Changed the main loop to while (iterate(bin))
Original commit message from CVS: Changed the main loop to while (iterate(bin))
This commit is contained in:
parent
4fde5f8410
commit
44dc27ce21
1 changed files with 1 additions and 15 deletions
|
@ -89,12 +89,6 @@ xid_handler (GstElement *element, gint xid, void *priv)
|
|||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
idle_func (gpointer data)
|
||||
{
|
||||
return gst_bin_iterate (GST_BIN (data));
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -157,15 +151,7 @@ main(int argc, char *argv[])
|
|||
fprintf(stderr,"RUNNING pipeline\n");
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
|
||||
g_idle_add(idle_func,pipeline);
|
||||
#ifdef USE_GLIB2
|
||||
g_main_loop_run (g_main_loop_new (NULL, FALSE));
|
||||
#else
|
||||
gtk_main();
|
||||
#endif
|
||||
|
||||
while (1)
|
||||
gst_bin_iterate (GST_BIN (pipeline));
|
||||
while (gst_bin_iterate (GST_BIN (pipeline)));
|
||||
|
||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue