mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: backend-native: Fix parsing of +CLCC event for PTS
PTS 8.7.3 Build 6 send +CLCC events without space after '+CLCC:' Found with PTS test HFP/HF/ICA/BV-04-C
This commit is contained in:
parent
99fa7efc2c
commit
a0356cf4ae
1 changed files with 2 additions and 2 deletions
|
|
@ -2006,7 +2006,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
if (call == NULL)
|
||||
spa_log_warn(backend->log, "failed to create waiting call");
|
||||
}
|
||||
} else if (spa_strstartswith(token, "+CLCC: ")) {
|
||||
} else if (spa_strstartswith(token, "+CLCC:")) {
|
||||
struct spa_bt_telephony_call *call;
|
||||
size_t pos;
|
||||
char *token_end;
|
||||
|
|
@ -2017,7 +2017,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
|
|||
token[strcspn(token, "\r")] = 0;
|
||||
token[strcspn(token, "\n")] = 0;
|
||||
token_end = token + strlen(token);
|
||||
token += strlen("+CLCC: ");
|
||||
token += strlen("+CLCC:");
|
||||
|
||||
if (token < token_end) {
|
||||
pos = strcspn(token, ",");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue