Skip to contentSkip to conversation

Is this a bug?

DISCUSSION Tisserand Patrice 2 participants 2 messages Jul 15, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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 checked alsa-lib/seq/seq.c and found on line 320 in function snd_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