mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tests: use g_timeout_add_seconds instead of g_timeout_add
https://bugzilla.gnome.org/show_bug.cgi?id=692615
This commit is contained in:
parent
a1a579afeb
commit
7bb368ee4c
3 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ main (int argc, char **argv)
|
|||
}
|
||||
|
||||
/* quit after 5 seconds */
|
||||
g_timeout_add (5000, (GSourceFunc) quit_cb, NULL);
|
||||
g_timeout_add_seconds (5, (GSourceFunc) quit_cb, NULL);
|
||||
gtk_main ();
|
||||
|
||||
/* clean up */
|
||||
|
|
|
@ -212,7 +212,7 @@ main (int argc, char *argv[])
|
|||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
|
||||
/* print stats every second */
|
||||
g_timeout_add (1000, (GSourceFunc) print_stats, rtpbin);
|
||||
g_timeout_add_seconds (1, (GSourceFunc) print_stats, rtpbin);
|
||||
|
||||
/* we need to run a GLib main loop to get the messages */
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
|
|
@ -60,7 +60,7 @@ main (int argc, char **argv)
|
|||
}
|
||||
|
||||
/* We want to get out after 5 seconds */
|
||||
g_timeout_add (5000, (GSourceFunc) terminate_playback, pipeline);
|
||||
g_timeout_add_seconds (5, (GSourceFunc) terminate_playback, pipeline);
|
||||
|
||||
g_main_loop_run (loop);
|
||||
|
||||
|
|
Loading…
Reference in a new issue