Message ID | 26d36cc8d645773b6795a18355631134bf2bd074.1675281104.git.pav@iki.fi |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v2] media: set default value for BAP endpoint Vendor field | expand |
Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Wed, 1 Feb 2023 19:51:47 +0000 you wrote: > The "Vendor" field is optional, and should have an initialized valid > default value. > > It has the default values in register_endpoint, but not in > app_register_endpoint, so make the latter match the former. > --- > > [...] Here is the summary with links: - [BlueZ,v2] media: set default value for BAP endpoint Vendor field https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=67395a3b357d You are awesome, thank you!
diff --git a/profiles/audio/media.c b/profiles/audio/media.c index d96367454..8a2afd04c 100644 --- a/profiles/audio/media.c +++ b/profiles/audio/media.c @@ -2583,6 +2583,8 @@ static void app_register_endpoint(void *data, void *user_data) dbus_message_iter_get_basic(&iter, &codec); + memset(&vendor, 0, sizeof(vendor)); + if (g_dbus_proxy_get_property(proxy, "Vendor", &iter)) { if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_UINT32) goto fail;