mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: backend_native: Fix backend_native_new() error path
This commit is contained in:
parent
aea79cd79c
commit
bdbd0f17c6
1 changed files with 6 additions and 1 deletions
|
|
@ -1404,7 +1404,7 @@ struct spa_bt_backend *backend_native_new(struct spa_bt_monitor *monitor,
|
|||
if (!dbus_connection_register_object_path(backend->conn,
|
||||
PROFILE_HFP_HF,
|
||||
&vtable_profile, backend)) {
|
||||
goto fail;
|
||||
goto fail3;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -1412,7 +1412,12 @@ struct spa_bt_backend *backend_native_new(struct spa_bt_monitor *monitor,
|
|||
sco_listen(backend);
|
||||
|
||||
return backend;
|
||||
|
||||
#ifdef HAVE_BLUEZ_5_BACKEND_HFP_NATIVE
|
||||
fail3:
|
||||
dbus_connection_unregister_object_path(backend->conn, PROFILE_HFP_AG);
|
||||
fail2:
|
||||
#endif
|
||||
#ifdef HAVE_BLUEZ_5_BACKEND_HSP_NATIVE
|
||||
dbus_connection_unregister_object_path(backend->conn, PROFILE_HSP_HS);
|
||||
fail1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue