]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
audiod: Fix bug in status_pre_select().
[paraslash.git] / audiod.c
index 295787262ae66589ceb6dc2d56da258e77943ef8..4858366e697973f52d9e20495e16072422632249 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -8,7 +8,6 @@
 #include <regex.h>
 #include <sys/types.h>
 #include <signal.h>
-#include <stdbool.h>
 
 #include "para.h"
 #include "error.h"
@@ -1160,7 +1159,7 @@ static void status_pre_select(struct sched *s, struct task *t)
 
        if (must_start_decoder())
                goto min_delay;
-       ret = btr_node_status(st->btrn, 0, BTR_NT_LEAF);
+       ret = btr_node_status(st->btrn, st->min_iqs, BTR_NT_LEAF);
        if (ret > 0)
                goto min_delay;
        if (st->ct && audiod_status == AUDIOD_OFF)