]> git.alsa-project.org Git - alsa-lib.git/commit
Fix handling of revents in snd_pcm_poll_descriptors_revents()
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 14:43:48 +0000 (15:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 15:10:08 +0000 (16:10 +0100)
commitcb66600dd3d491f19ce24fdf6d05300ca235e531
tree3b9889346b49a65de5a45e03a586bff2a2131909
parent59ebaa8e9d8c6bc227a1255ab6e49abb98daa79e
Fix handling of revents in snd_pcm_poll_descriptors_revents()

The revents parameter is ambiguously defined whether it's a pointer
to a single event or an arary.

This patch defines the behavior of revents more strictly (in the
function description): it's a pointer of a single event.

Also fixed snd_pcm_wait_nocheck() to follow that rule.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm.c