From: Andre Noll Date: Fri, 23 Dec 2011 20:51:00 +0000 (+0100) Subject: audiod: Fix bug in status_pre_select(). X-Git-Tag: v0.4.10~24 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=03655936efc48594ec7f35d82c41782e16d07f21 audiod: Fix bug in status_pre_select(). We have to take the minimum input size into account when deciding whether a minimal delay should be requested from the scheduler. Without this, a busy loop is possible. --- diff --git a/audiod.c b/audiod.c index 88411af4..4858366e 100644 --- a/audiod.c +++ b/audiod.c @@ -1159,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)