mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 09:59:43 +01:00
Added detection for POLLERR
This commit is contained in:
parent
3341f0a51c
commit
ed80be2bcf
1 changed files with 2 additions and 0 deletions
|
@ -1698,6 +1698,8 @@ mixer_iteration (void)
|
||||||
|
|
||||||
if (finished > 0) {
|
if (finished > 0) {
|
||||||
if (snd_mixer_poll_descriptors_revents(mixer_handle, fds + 1, count, &revents) >= 0) {
|
if (snd_mixer_poll_descriptors_revents(mixer_handle, fds + 1, count, &revents) >= 0) {
|
||||||
|
if (revents & POLLERR)
|
||||||
|
mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLERR)", 0);
|
||||||
if (revents & POLLIN)
|
if (revents & POLLIN)
|
||||||
snd_mixer_handle_events(mixer_handle);
|
snd_mixer_handle_events(mixer_handle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue