Update of /cvsroot/alsa/alsa-lib/src/pcm In directory sc8-pr-cvs1:/tmp/cvs-serv1252
Modified Files: pcm.c Log Message: Fixed snd_pcm_wait() function Index: pcm.c =================================================================== RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v retrieving revision 1.257 retrieving revision 1.258 diff -u -r1.257 -r1.258 --- pcm.c 16 Jul 2003 11:37:25 -0000 1.257 +++ pcm.c 16 Jul 2003 19:31:15 -0000 1.258 @@ -2008,11 +2008,11 @@ { struct pollfd pfd; unsigned short revents; - int err; + int err, err_poll; err = snd_pcm_poll_descriptors(pcm, &pfd, 1); assert(err == 1); - err = poll(&pfd, 1, timeout); - if (err < 0) + err_poll = poll(&pfd, 1, timeout); + if (err_poll < 0) return -errno; err = snd_pcm_poll_descriptors_revents(pcm, &pfd, 1, &revents); if (err < 0) @@ -2028,7 +2028,7 @@ return -EIO; } } - return err > 0 ? 1 : 0; + return err_pol > 0 ? 1 : 0; } /** ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog