summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-17 09:14:18 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-24 16:37:39 -0700
commit1ee1fc8e387c074c474bfdae15707f1afa76e1b9 (patch)
tree3bd7dbc9205ba07b9602ce1b455b2c57fd1c2987 /profiles
parent648b4362521bcd9146b88d03e51e05454269e27f (diff)
downloadbluez-1ee1fc8e387c074c474bfdae15707f1afa76e1b9.tar.gz
bap: Fix not continue selecting if endpoint respond with an error
If the endpoint respond with an error we shall decrement selecting counter and proceed to check if there is any stream that can be configured.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/bap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index dfdf87255..cfe685466 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -627,7 +627,8 @@ static void select_cb(struct bt_bap_pac *pac, int err, struct iovec *caps,
if (err) {
error("err %d", err);
- return;
+ ep->data->selecting--;
+ goto done;
}
ep->caps = util_iov_dup(caps, 1);
@@ -642,6 +643,7 @@ static void select_cb(struct bt_bap_pac *pac, int err, struct iovec *caps,
DBG("selecting %d", ep->data->selecting);
ep->data->selecting--;
+done:
if (ep->data->selecting)
return;