fixed typo of snd_seq_poll_descriptors() in getting poll desc

for output only.
This commit is contained in:
Takashi Iwai 2002-07-15 14:08:32 +00:00
parent 518d16d849
commit fe58dd62eb

View file

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