]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - oss_write.c
btr_add_output(): Fix memory leak in case node has no children.
[paraslash.git] / oss_write.c
index d8b571b68d2865b261646a5276dc1d08471c5b61..bda0ad4cb7189fec9311c1cdfb9896e3fe9b7598 100644 (file)
@@ -6,10 +6,12 @@
 
 /** \file oss_write.c Paraslash's oss output plugin. */
 
+#include <regex.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <dirent.h>
 #include <sys/soundcard.h>
+#include <stdbool.h>
 
 #include "para.h"
 #include "fd.h"
@@ -17,6 +19,7 @@
 #include "list.h"
 #include "sched.h"
 #include "ggo.h"
+#include "buffer_tree.h"
 #include "write.h"
 #include "oss_write.cmdline.h"
 #include "error.h"
@@ -52,8 +55,8 @@ static int oss_pre_select(struct sched *s, struct writer_node *wn)
        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;