bluetooth: Set profile even if transport not acquired

If the acquisition of the transport fails, the profile should still be
set. In this case the audio is not actually streaming, so the sink and
source will be created but left suspended.

If the transport needs to be acquired later, for example because the
user wants to route the audio the remote device, the suspend flag should
have to be changed.
This commit is contained in:
Mikel Astiz 2012-08-31 12:51:04 +02:00 committed by Arun Raghavan
parent dcc11dcbe9
commit 884d1d46ca
2 changed files with 56 additions and 25 deletions

View file

@ -1014,7 +1014,6 @@ int pa_bluetooth_transport_acquire(const pa_bluetooth_transport *t, const char *
r = dbus_connection_send_with_reply_and_block(pa_dbus_connection_get(t->y->connection), m, -1, &err);
if (dbus_error_is_set(&err) || !r) {
pa_log("Failed to acquire transport fd: %s", err.message);
dbus_error_free(&err);
return -1;
}