From 7bb368ee4c43f7505f3578818f39230bff17c1a7 Mon Sep 17 00:00:00 2001 From: "B.Prathibha" Date: Sun, 27 Jan 2013 10:17:59 +0530 Subject: [PATCH] tests: use g_timeout_add_seconds instead of g_timeout_add https://bugzilla.gnome.org/show_bug.cgi?id=692615 --- tests/examples/jack/jack_client.c | 2 +- tests/examples/rtp/server-alsasrc-PCMA.c | 2 +- tests/icles/ximagesrc-test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/jack/jack_client.c b/tests/examples/jack/jack_client.c index 99599ab5cb..969ceda9c4 100644 --- a/tests/examples/jack/jack_client.c +++ b/tests/examples/jack/jack_client.c @@ -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 */ diff --git a/tests/examples/rtp/server-alsasrc-PCMA.c b/tests/examples/rtp/server-alsasrc-PCMA.c index 8d10932146..4690eed45c 100644 --- a/tests/examples/rtp/server-alsasrc-PCMA.c +++ b/tests/examples/rtp/server-alsasrc-PCMA.c @@ -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); diff --git a/tests/icles/ximagesrc-test.c b/tests/icles/ximagesrc-test.c index 4873046a83..fdcc580eee 100644 --- a/tests/icles/ximagesrc-test.c +++ b/tests/icles/ximagesrc-test.c @@ -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);