From 7ec871d37de442fd3731a0eef319851c61fb04cc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 14 Nov 2008 17:27:16 -0300 Subject: Make use of g_timeout_add_seconds whenever possible. --- audio/a2dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/a2dp.c') diff --git a/audio/a2dp.c b/audio/a2dp.c index 8c38a90b..af0cfe4d 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -46,7 +46,7 @@ /* The duration that streams without users are allowed to stay in * STREAMING state. */ -#define SUSPEND_TIMEOUT 5000 +#define SUSPEND_TIMEOUT 5 #define RECONFIGURE_TIMEOUT 500 #ifndef MIN @@ -610,7 +610,7 @@ static gboolean start_ind(struct avdtp *session, struct avdtp_local_sep *sep, if (!a2dp_sep->locked) { a2dp_sep->session = avdtp_ref(session); - a2dp_sep->suspend_timer = g_timeout_add(SUSPEND_TIMEOUT, + a2dp_sep->suspend_timer = g_timeout_add_seconds(SUSPEND_TIMEOUT, (GSourceFunc) suspend_timeout, a2dp_sep); } -- cgit