summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorB.Prathibha <bosslinux@cdac.in>2013-01-27 10:17:59 +0530
committerTim-Philipp Müller <tim@centricular.net>2013-01-27 15:38:12 +0000
commit7bb368ee4c43f7505f3578818f39230bff17c1a7 (patch)
treedc7327f37d9cf05300b281f5e9f97566e1aa111b /tests
parenta1a579afebca2e82715e9e57a91e591bb3a0802f (diff)
tests: use g_timeout_add_seconds instead of g_timeout_add
https://bugzilla.gnome.org/show_bug.cgi?id=692615
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/jack/jack_client.c2
-rw-r--r--tests/examples/rtp/server-alsasrc-PCMA.c2
-rw-r--r--tests/icles/ximagesrc-test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/examples/jack/jack_client.c b/tests/examples/jack/jack_client.c
index 99599ab5c..969ceda9c 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 8d1093214..4690eed45 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 4873046a8..fdcc580ee 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);