bluetooth: switch_codec should start with pa_blueooth_device_

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/521>
This commit is contained in:
Marijn Suijten 2021-01-24 14:10:16 +01:00
parent a82e019de9
commit cefee393fb
3 changed files with 5 additions and 5 deletions

View file

@ -2494,7 +2494,7 @@ static int bluez5_device_message_handler(const char *object_path, const char *me
stop_thread(u);
if (!pa_bluetooth_switch_codec(u->device, profile, capabilities_hashmap, codec, switch_codec_cb_handler, userdata)
if (!pa_bluetooth_device_switch_codec(u->device, profile, capabilities_hashmap, codec, switch_codec_cb_handler, userdata)
&& !u->device->codec_switching_in_progress)
goto profile_off;