mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: fix type of 'Codec' on remote endpoint
Vendor codec(LDAC, aptX) uses codec ID 0xff, use uint8 to fill it.
This commit is contained in:
parent
7c0081eb6f
commit
ab4223601f
1 changed files with 2 additions and 2 deletions
|
|
@ -969,7 +969,7 @@ static int remote_endpoint_update_props(struct spa_bt_remote_endpoint *remote_en
|
|||
}
|
||||
}
|
||||
else if (type == DBUS_TYPE_BYTE) {
|
||||
int8_t value;
|
||||
uint8_t value;
|
||||
|
||||
dbus_message_iter_get_basic(&it[1], &value);
|
||||
|
||||
|
|
@ -1304,7 +1304,7 @@ static int transport_update_props(struct spa_bt_transport *transport,
|
|||
}
|
||||
}
|
||||
else if (strcmp(key, "Codec") == 0) {
|
||||
int8_t value;
|
||||
uint8_t value;
|
||||
|
||||
if (type != DBUS_TYPE_BYTE)
|
||||
goto next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue