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/unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'audio/unix.c') diff --git a/audio/unix.c b/audio/unix.c index d3e7485c..31e1dcb2 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -364,9 +364,10 @@ static void a2dp_discovery_complete(struct avdtp *session, GSList *seps, codec_cap = (void *) cap->data; - if (codec_cap->media_codec_type == A2DP_CODEC_SBC && !sbc_cap) + if (codec_cap->media_codec_type == A2DP_CODEC_SBC && !sbc_cap) { sbc_cap = (void *) codec_cap; - + break; + } } /* endianess prevent direct cast */ -- cgit