bluez5: add logic to fallback to previous behavior if connection info handling is not supportrd by session manager (i.e wireplumber).

This commit is contained in:
Huang-Huang Bao 2021-03-16 10:56:27 +08:00 committed by Wim Taymans
parent 01df7671d5
commit 75b4c80dc6
2 changed files with 77 additions and 2 deletions

View file

@ -577,6 +577,8 @@ int sm_bluez5_monitor_start(struct sm_media_session *session)
if ((str = pw_properties_get(impl->conf, "properties")) != NULL)
pw_properties_update_string(impl->props, str, strlen(str));
pw_properties_set(impl->props, "api.bluez5.connection-info", "true");
impl->handle = pw_context_load_spa_handle(context, SPA_NAME_API_BLUEZ5_ENUM_DBUS, &impl->props->dict);
if (impl->handle == NULL) {
res = -errno;