mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
snd_mixer_poll_descriptors_revents should loop over pollfd
Signed-off-by: Sander Jansen <s.jansen@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f5f45589f8
commit
28493d9d69
1 changed files with 1 additions and 1 deletions
|
|
@ -743,7 +743,7 @@ int snd_mixer_poll_descriptors_revents(snd_mixer_t *mixer, struct pollfd *pfds,
|
|||
if (nfds == 0)
|
||||
return -EINVAL;
|
||||
res = 0;
|
||||
for (idx = 0; idx < nfds; idx++)
|
||||
for (idx = 0; idx < nfds; idx++, pfds++)
|
||||
res |= pfds->revents & (POLLIN|POLLERR|POLLNVAL);
|
||||
*revents = res;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue