audio/avdtp: Fix resuming only the first SEID

AVDTP_Start can contain several Stream Endpoing IDs to be resumed.
This commit is contained in:
Luiz Augusto von Dentz 2015-08-10 13:16:00 +03:00
parent b5c6b1ed97
commit 302e4163f3
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;