From ab4223601f17ffe4b1eb19cec0ced2ee9d1e2268 Mon Sep 17 00:00:00 2001 From: Huang-Huang Date: Tue, 2 Feb 2021 23:42:34 +0800 Subject: [PATCH] bluez5: fix type of 'Codec' on remote endpoint Vendor codec(LDAC, aptX) uses codec ID 0xff, use uint8 to fill it. --- spa/plugins/bluez5/bluez5-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index a87d24b6a..c2c3f1641 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -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;