From c7514bc9b27c43fadfcb02180e7d8875890c7820 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 7 Dec 2007 08:03:02 +0000 Subject: Fix BT_GETCAPABILITIES when the headset has already been acting as INT --- audio/avdtp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'audio/avdtp.c') diff --git a/audio/avdtp.c b/audio/avdtp.c index b0b5b7cd..98cce35f 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -1824,12 +1824,12 @@ static gboolean avdtp_discover_resp(struct avdtp *session, resp->seps[i].seid, resp->seps[i].type, resp->seps[i].media_type, resp->seps[i].inuse); - /* Skip SEP's which are in use */ - if (resp->seps[i].inuse) - continue; - sep = find_remote_sep(session->seps, resp->seps[i].seid); if (!sep) { + if (resp->seps[i].inuse && + !find_stream_by_rseid(session, + resp->seps[i].seid)) + continue; sep = g_new0(struct avdtp_remote_sep, 1); session->seps = g_slist_append(session->seps, sep); } -- cgit