mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
Added POLLNVAL to poll->events
This commit is contained in:
parent
d0526d603c
commit
098932ce57
7 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue