mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 05:45:41 +01:00
Added POLLNVAL test
This commit is contained in:
parent
870f73612f
commit
a439342676
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 & POLLNVAL)
|
||||||
|
mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLNVAL)", 0);
|
||||||
if (revents & POLLERR)
|
if (revents & POLLERR)
|
||||||
mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLERR)", 0);
|
mixer_abort (ERR_FCN, "snd_mixer_poll_descriptors (POLLERR)", 0);
|
||||||
if (revents & POLLIN)
|
if (revents & POLLIN)
|
||||||
|
|
Loading…
Reference in a new issue