mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Merge branch 'fix-bluetooth' into 'master'
bluetooth: Check if transport returns an error -1 See merge request pulseaudio/pulseaudio!621
This commit is contained in:
commit
8cb2e5def8
1 changed files with 4 additions and 3 deletions
|
|
@ -1399,9 +1399,10 @@ static int setup_transport(struct userdata *u) {
|
|||
|
||||
u->transport = t;
|
||||
|
||||
if (u->profile == PA_BLUETOOTH_PROFILE_A2DP_SOURCE || u->profile == PA_BLUETOOTH_PROFILE_HFP_AG || u->profile == PA_BLUETOOTH_PROFILE_HSP_AG)
|
||||
transport_acquire(u, true); /* In case of error, the sink/sources will be created suspended */
|
||||
else {
|
||||
if (u->profile == PA_BLUETOOTH_PROFILE_A2DP_SOURCE || u->profile == PA_BLUETOOTH_PROFILE_HFP_AG || u->profile == PA_BLUETOOTH_PROFILE_HSP_AG) {
|
||||
if (transport_acquire(u, true) == -1) /* In case of error, the sink/sources will be created suspended */
|
||||
return -1;
|
||||
} else {
|
||||
int transport_error;
|
||||
|
||||
transport_error = transport_acquire(u, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue