mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
audio/avdtp: Fix resuming only the first SEID
AVDTP_Start can contain several Stream Endpoing IDs to be resumed.
This commit is contained in:
parent
b5c6b1ed97
commit
302e4163f3
@ -1567,7 +1567,7 @@ static gboolean avdtp_start_cmd(struct avdtp *session, uint8_t transaction,
|
||||
for (i = 0; i < seid_count; i++, seid++) {
|
||||
failed_seid = seid->seid;
|
||||
|
||||
sep = find_local_sep_by_seid(session, req->first_seid.seid);
|
||||
sep = find_local_sep_by_seid(session, seid->seid);
|
||||
if (!sep || !sep->stream) {
|
||||
err = AVDTP_BAD_ACP_SEID;
|
||||
goto failed;
|
||||
|
@ -1710,8 +1710,7 @@ static gboolean avdtp_start_cmd(struct avdtp *session, uint8_t transaction,
|
||||
for (i = 0; i < seid_count; i++, seid++) {
|
||||
failed_seid = seid->seid;
|
||||
|
||||
sep = find_local_sep_by_seid(session,
|
||||
req->first_seid.seid);
|
||||
sep = find_local_sep_by_seid(session, seid->seid);
|
||||
if (!sep || !sep->stream) {
|
||||
err = AVDTP_BAD_ACP_SEID;
|
||||
goto failed;
|
||||
|
Loading…
Reference in New Issue
Block a user