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:
B.Prathibha 2013-01-27 10:17:59 +05:30 committed by Tim-Philipp Müller
parent a1a579afeb
commit 7bb368ee4c
3 changed files with 3 additions and 3 deletions

View file

@ -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 */

View file

@ -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);

View file

@ -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);