mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
alsa: Fix ELD access warning on shutdown
The hdmi_eld_changed callback is called by alsa-lib at shutdown. In that case, just exit instead of trying to access something with already closed handles. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
d389e7d37c
commit
2553757922
1 changed files with 3 additions and 0 deletions
|
|
@ -409,6 +409,9 @@ static int hdmi_eld_changed(snd_hctl_elem_t *elem, unsigned int mask) {
|
|||
pa_hdmi_eld eld;
|
||||
bool changed = false;
|
||||
|
||||
if (mask == SND_CTL_EVENT_MASK_REMOVE)
|
||||
return 0;
|
||||
|
||||
p = find_port_with_eld_device(u->card->ports, device);
|
||||
if (p == NULL) {
|
||||
pa_log_error("Invalid device changed in ALSA: %d", device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue