Added POLLNVAL to poll->events

This commit is contained in:
Jaroslav Kysela 2002-11-30 09:47:20 +00:00
parent d0526d603c
commit 098932ce57
7 changed files with 12 additions and 12 deletions

View file

@ -315,11 +315,11 @@ int snd_seq_poll_descriptors(snd_seq_t *seq, struct pollfd *pfds, unsigned int s
assert(seq);
if ((events & POLLIN) && space >= 1) {
assert(seq->streams & SND_SEQ_OPEN_INPUT);
revents |= POLLIN|POLLERR;
revents |= POLLIN|POLLERR|POLLNVAL;
}
if ((events & POLLOUT) && space >= 1) {
assert(seq->streams & SND_SEQ_OPEN_OUTPUT);
revents |= POLLOUT|POLLERR;
revents |= POLLOUT|POLLERR|POLLNVAL;
}
if (!revents)
return 0;