Commit 24c2a527 authored by Igor Kovalenko's avatar Igor Kovalenko Committed by PulseAudio Marge Bot
Browse files

bluetooth: fix typo checking if target codec is available

A2DP switch-codec command implementation must check if target codec is good,
not the one we want to switch from.

Part-of: <pulseaudio/pulseaudio!518>
parent 458c7639
Pipeline #279109 passed with stages
in 5 minutes and 10 seconds
......@@ -2460,7 +2460,7 @@ static int bluez5_device_message_handler(const char *object_path, const char *me
is_a2dp_sink = u->profile == PA_BLUETOOTH_PROFILE_A2DP_SINK;
if (!u->a2dp_codec->can_be_supported(is_a2dp_sink)) {
if (!codec->can_be_supported(is_a2dp_sink)) {
pa_log_info("Codec not found on system");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment