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:
Huang-Huang 2021-02-02 23:42:34 +08:00
parent 7c0081eb6f
commit ab4223601f
No known key found for this signature in database
GPG key ID: 33C3271387A13D1B

View file

@ -969,7 +969,7 @@ static int remote_endpoint_update_props(struct spa_bt_remote_endpoint *remote_en
} }
} }
else if (type == DBUS_TYPE_BYTE) { else if (type == DBUS_TYPE_BYTE) {
int8_t value; uint8_t value;
dbus_message_iter_get_basic(&it[1], &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) { else if (strcmp(key, "Codec") == 0) {
int8_t value; uint8_t value;
if (type != DBUS_TYPE_BYTE) if (type != DBUS_TYPE_BYTE)
goto next; goto next;