]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - oss_write.c
the paraslash-0.3.6 release tarball
[paraslash.git] / oss_write.c
index 552d5b9705821df8d25720b29f8069629dcb0ade..3ef0d9e8867c5b692f8cc8b2afc8a47c6fdda7e9 100644 (file)
@@ -47,13 +47,13 @@ static int oss_pre_select(struct sched *s, struct writer_node *wn)
        struct private_oss_write_data *powd = wn->private_data;
        struct writer_node_group *wng = wn->wng;
 
-       if (!*wng->loaded)
+       if (*wng->loaded - wn->written < powd->bytes_per_frame)
                return 0;
        para_fd_set(powd->fd, &s->wfds, &s->max_fileno);
        return 1;
 }
-static int oss_post_select(__a_unused struct sched *s,
-               struct writer_node *wn)
+
+static int oss_post_select(struct sched *s, struct writer_node *wn)
 {
        int ret;
        struct private_oss_write_data *powd = wn->private_data;
@@ -216,4 +216,5 @@ void oss_write_init(struct writer *w)
                .short_help = oss_write_args_info_help,
                .detailed_help = oss_write_args_info_detailed_help
        };
+       oss_cmdline_parser_free(&dummy);
 }