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/sink.c | |
| parent | 204180c7dc2e20b9b701275a3fefb52707720f54 (diff) | |
Make use of g_timeout_add_seconds whenever possible.
Diffstat (limited to 'audio/sink.c')
| -rw-r--r-- | audio/sink.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/audio/sink.c b/audio/sink.c index ea8570ac..9c72c5f1 100644 --- a/audio/sink.c +++ b/audio/sink.c @@ -44,7 +44,7 @@  #include "sink.h"  #include "dbus-common.h" -#define STREAM_SETUP_RETRY_TIMER 2000 +#define STREAM_SETUP_RETRY_TIMER 2  struct pending_request {  	DBusConnection *conn; @@ -201,7 +201,7 @@ static void stream_setup_complete(struct avdtp *session, struct a2dp_sep *sep,  		if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO  				&& avdtp_error_posix_errno(err) != EHOSTDOWN) {  			debug("connect:connect XCASE detected"); -			g_timeout_add(STREAM_SETUP_RETRY_TIMER, +			g_timeout_add_seconds(STREAM_SETUP_RETRY_TIMER,  					stream_setup_retry, sink);  		} else {  			sink->connect = NULL; @@ -366,7 +366,7 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp  		if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO  				&& avdtp_error_posix_errno(err) != EHOSTDOWN) {  			debug("connect:connect XCASE detected"); -			g_timeout_add(STREAM_SETUP_RETRY_TIMER, +			g_timeout_add_seconds(STREAM_SETUP_RETRY_TIMER,  					stream_setup_retry, sink);  		} else  			goto failed; | 
