]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - alsa_write.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / alsa_write.c
index bbbf8b650ac86c4952ac46f22c166583018bfb88..1e61a17faf256df214b1f08f616fb2fcf24cd9dc 100644 (file)
@@ -321,7 +321,7 @@ again:
        frames = snd_pcm_writei(pad->handle, data, frames);
        if (frames == 0 || frames == -EAGAIN) {
                char buf[100];
-               if (pad->poll_fd >= 0 && FD_ISSET(pad->poll_fd, &s->rfds))
+               if (pad->poll_fd >= 0 && sched_read_ok(pad->poll_fd, s))
                        if (read(pad->poll_fd, buf, 100))
                                do_nothing;
                return 0;