Is this a bug?
Hi,
I wasn't enable to get poll descriptors for a sequencer opened for output only,
so I checked alsa-lib/seq/seq.c and found on line 320 in function snd_seq_poll_descriptors:
if ((events & POLLOUT) && space >= 1) {
assert(seq->streams & SND_SEQ_OPEN_INPUT);
revents |= POLLOUT|POLLERR;
}
Shouldn't it read: assert(seq->streams & SND_SEQ_OPEN_OUTPUT); ?
Regards,
--
Patrice Tisserand --- email:mailto:[email protected] IRCAM 1 place Stravinsky 75004 Paris FRANCE
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
At Mon, 15 Jul 2002 15:57:35 +0200,
Quoted 8 lines · Tisserand Patrice
Hi,
I wasn't enable to get poll descriptors for a sequencer opened for output only,
so I checkedalsa-lib/seq/seq.cand found on line 320 in functionsnd_seq_poll_descriptors:
Quoted 6 lines
if ((events & POLLOUT) && space >= 1) {
assert(seq->streams & SND_SEQ_OPEN_INPUT);
revents |= POLLOUT|POLLERR;
}Shouldn't it read:
assert(seq->streams & SND_SEQ_OPEN_OUTPUT); ?
yep, an obvious typo. now fixed on cvs.
thanks,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf