mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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,
|
if (!dbus_connection_register_object_path(backend->conn,
|
||||||
PROFILE_HFP_HF,
|
PROFILE_HFP_HF,
|
||||||
&vtable_profile, backend)) {
|
&vtable_profile, backend)) {
|
||||||
goto fail;
|
goto fail3;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -1412,7 +1412,12 @@ struct spa_bt_backend *backend_native_new(struct spa_bt_monitor *monitor,
|
||||||
sco_listen(backend);
|
sco_listen(backend);
|
||||||
|
|
||||||
return backend;
|
return backend;
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUEZ_5_BACKEND_HFP_NATIVE
|
||||||
|
fail3:
|
||||||
|
dbus_connection_unregister_object_path(backend->conn, PROFILE_HFP_AG);
|
||||||
fail2:
|
fail2:
|
||||||
|
#endif
|
||||||
#ifdef HAVE_BLUEZ_5_BACKEND_HSP_NATIVE
|
#ifdef HAVE_BLUEZ_5_BACKEND_HSP_NATIVE
|
||||||
dbus_connection_unregister_object_path(backend->conn, PROFILE_HSP_HS);
|
dbus_connection_unregister_object_path(backend->conn, PROFILE_HSP_HS);
|
||||||
fail1:
|
fail1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue