]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: fix handling of removed controls
authorClemens Ladisch <clemens@ladisch.de>
Fri, 19 Oct 2012 10:16:33 +0000 (12:16 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Fri, 19 Oct 2012 10:16:33 +0000 (12:16 +0200)
commitf2826072732951b1d4e1bacd8115f9e6a98932d5
tree31673d509c219098c0808f371036ffbaa6fbcb5b
parent6017849f1b9d406ac2c882ddbde408ada38c3d61
alsamixer: fix handling of removed controls

When we get a notification that an element has been removed, we have to
recreate our internal control representation to avoid accessing freed
memory.  (And the checking for SND_CTL_EVENT_MASK_REMOVE should actually
be done correctly while we're at it.)

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsamixer/mainloop.c
alsamixer/mixer_display.c
alsamixer/mixer_widget.c
alsamixer/mixer_widget.h