mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: more cleanup on impl_clear
Remove dbus filters and close the dbus connection. Closing the connection lets BlueZ to clean up, so we don't call its unregistration API.
This commit is contained in:
parent
1c550d850b
commit
87e06783d1
4 changed files with 37 additions and 2 deletions
|
|
@ -1449,6 +1449,11 @@ static int backend_hsphfpd_free(void *data)
|
|||
struct impl *backend = data;
|
||||
struct hsphfpd_endpoint *endpoint;
|
||||
|
||||
if (backend->filters_added) {
|
||||
dbus_connection_remove_filter(backend->conn, hsphfpd_filter_cb, backend);
|
||||
backend->filters_added = false;
|
||||
}
|
||||
|
||||
if (backend->msbc_supported)
|
||||
dbus_connection_unregister_object_path(backend->conn, HSPHFP_AUDIO_CLIENT_MSBC);
|
||||
dbus_connection_unregister_object_path(backend->conn, HSPHFP_AUDIO_CLIENT_PCM_S16LE_8KHZ);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue