summaryrefslogtreecommitdiff
path: root/audio/sink.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-10-05 16:16:03 +0300
committerLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-10-11 12:27:01 +0300
commit01d29e5903fada201657cc56cd767754678addee (patch)
tree6b3b70c1fb443dafec170cbdc0dbc240ac4e3f34 /audio/sink.c
parentc6ed0d5e0622d563a8b8782d0d72fbc04d39ff49 (diff)
downloadbluez-01d29e5903fada201657cc56cd767754678addee.tar.gz
Make use of avdtp category when setting errors
In order to forward and create avdtp error properly for setconf command we need to have the category, to fix this avdtp_error_t now carries the category as define in avdtp and a new category is used for errno (AVDTP_ERRNO).
Diffstat (limited to 'audio/sink.c')
-rw-r--r--audio/sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/sink.c b/audio/sink.c
index eb90c2175..730faf1db 100644
--- a/audio/sink.c
+++ b/audio/sink.c
@@ -303,7 +303,7 @@ static void stream_setup_complete(struct avdtp *session, struct a2dp_sep *sep,
avdtp_unref(sink->session);
sink->session = NULL;
- if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO
+ if (avdtp_error_category(err) == AVDTP_ERRNO
&& avdtp_error_posix_errno(err) != EHOSTDOWN) {
DBG("connect:connect XCASE detected");
sink->retry_id = g_timeout_add_seconds(STREAM_SETUP_RETRY_TIMER,
@@ -356,7 +356,7 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
if (err) {
avdtp_unref(sink->session);
sink->session = NULL;
- if (avdtp_error_type(err) == AVDTP_ERROR_ERRNO
+ if (avdtp_error_category(err) == AVDTP_ERRNO
&& avdtp_error_posix_errno(err) != EHOSTDOWN) {
DBG("connect:connect XCASE detected");
sink->retry_id =