]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Added detection for POLLERR
authorJaroslav Kysela <perex@perex.cz>
Mon, 25 Nov 2002 18:16:24 +0000 (18:16 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Nov 2002 18:16:24 +0000 (18:16 +0000)
alsamixer/alsamixer.c

index f27bd36391b641ba46dc6cb5c679730ac47eaf78..4c6c15f782d4fb7bdaddd53b90fc336858340af3 100644 (file)
@@ -1698,6 +1698,8 @@ mixer_iteration (void)
   
   if (finished > 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)
         snd_mixer_handle_events(mixer_handle);
     }