]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audioc.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / audioc.c
index 76b3d6dba0b3c67742e78903e6352949da4285c4..45688acbdcb63cec5b97e9466da535c739b04909 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -162,7 +162,7 @@ static int audioc_post_select(struct sched *s, void *context)
 
        if (ret < 0)
                goto out;
-       if (!FD_ISSET(at->fd, &s->rfds))
+       if (!sched_read_ok(at->fd, s))
                return 0;
        bufsize = PARA_MAX(1024U, OPT_UINT32_VAL(BUFSIZE));
        buf = para_malloc(bufsize);