alsa: Better error handling in mixer rtpoll callback
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 4 Oct 2011 04:59:03 +0000 (10:29 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 4 Oct 2011 06:59:46 +0000 (12:29 +0530)
commitd086f15c91e1919127b4ba62841de77235e003dd
treed6862f41d19efa2362ae6586a6ed8244a86f0513
parentfc8702ee81f1ceb034a3b19f4a0603c46a02c515
alsa: Better error handling in mixer rtpoll callback

This improves the error handling in the mixer rtpoll callback. It avoids
a crash if an error occurs (the rtpoll_item is freed but still
referenced), and specifically makes sure we don't continue trying to
poll the device if the card is disconnected.
src/modules/alsa/alsa-mixer.c