mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Revert "bluetooth: Update to new BlueZ 5 transport acquire/release API"
This reverts commit 9615def4b9.
This is part of the reversion of BlueZ 5 support so it can be added back
in a separate set of modules. This makes the code easier to maintain and
decrease PulseAudio's binary size.
This commit is contained in:
parent
9882f2d4fd
commit
44ca651220
2 changed files with 31 additions and 41 deletions
|
|
@ -367,8 +367,14 @@ static int bt_transport_acquire(struct userdata *u, bool optional) {
|
|||
pa_log_debug("Acquiring transport %s", u->transport->path);
|
||||
|
||||
u->stream_fd = pa_bluetooth_transport_acquire(u->transport, optional, &u->read_link_mtu, &u->write_link_mtu);
|
||||
if (u->stream_fd < 0)
|
||||
if (u->stream_fd < 0) {
|
||||
if (!optional)
|
||||
pa_log("Failed to acquire transport %s", u->transport->path);
|
||||
else
|
||||
pa_log_info("Failed optional acquire of transport %s", u->transport->path);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
u->transport_acquired = true;
|
||||
pa_log_info("Transport %s acquired: fd %d", u->transport->path, u->stream_fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue