PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
b1057f1a by Juho Hämäläinen at 2021-08-25T15:20:57+00:00
bluetooth: Only remove cards belonging to the device.

Commit f89d64b98e12bb71b6aa94fcef31eafc060f9759 fixed a crash
when disabling adapters. However, now if any device is removed
ofono card is removed, even if it belongs to different device.

Add a check for the device being unlinked to our callback to fix.

Signed-off-by: Juho Hämäläinen <juho.hamalai...@jolla.com>
Part-of: 
<https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/624>

- - - - -


1 changed file:

- src/modules/bluetooth/backend-ofono.c


Changes:

=====================================
src/modules/bluetooth/backend-ofono.c
=====================================
@@ -250,6 +250,9 @@ static pa_hook_result_t 
device_unlink_cb(pa_bluetooth_discovery *y, const pa_blu
     pa_assert(d);
     pa_assert(card);
 
+    if (d != card->transport->device)
+        return PA_HOOK_OK;
+
     hf_audio_agent_card_removed(card->backend, card->path);
 
     return PA_HOOK_OK;



View it on GitLab: 
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/b1057f1a37c10ba23855b2a264491cc4a3b45eca

-- 
View it on GitLab: 
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/b1057f1a37c10ba23855b2a264491cc4a3b45eca
You're receiving this email because of your account on gitlab.freedesktop.org.


Reply via email to