diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-14 17:27:16 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-17 14:15:10 -0300 |
commit | 7ec871d37de442fd3731a0eef319851c61fb04cc (patch) | |
tree | 069d1732958ede55f6e1821f653f1c6039e22c9c /audio/a2dp.c | |
parent | 204180c7dc2e20b9b701275a3fefb52707720f54 (diff) |
Make use of g_timeout_add_seconds whenever possible.
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r-- | audio/a2dp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |