X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=oss_write.c;h=75ad98b9faac0acfa912628c6bafed31d085b90b;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=0565167c256a43bfe86a6442f195a320e1458db8;hpb=4268d81d093204700d71b833d0d8b7723b09664b;p=paraslash.git diff --git a/oss_write.c b/oss_write.c index 0565167c..75ad98b9 100644 --- a/oss_write.c +++ b/oss_write.c @@ -222,7 +222,7 @@ static int oss_post_select(__a_unused struct sched *s, void *context) goto out; } ret = 0; - if (!FD_ISSET(powd->fd, &s->wfds)) + if (!sched_write_ok(powd->fd, s)) goto out; /* get maximal number of bytes that can be written */ ret = ioctl(powd->fd, SNDCTL_DSP_GETOSPACE, &abi);