From: Andre Noll Date: Sun, 23 Feb 2014 12:44:19 +0000 (+0100) Subject: opusdec: Fix busy loop. X-Git-Tag: v0.5.2~2^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=241a0d21827794701ad5750e078b409d3a42459e;p=paraslash.git opusdec: Fix busy loop. This braino caused the opus decoder to request a minimal timeout most of the time. The bug was introduced 2013-09 in commit 14c16b65. --- diff --git a/opusdec_filter.c b/opusdec_filter.c index c3b405cc..56a39bf0 100644 --- a/opusdec_filter.c +++ b/opusdec_filter.c @@ -277,7 +277,7 @@ static void opusdec_pre_select(struct sched *s, struct task *t) if (ret != 0) return sched_min_delay(s); - if (ctx->have_more) + if (!ctx->have_more) return; if (btr_get_output_queue_size(fn->btrn) <= OPUSDEC_MAX_OUTPUT_SIZE) return sched_min_delay(s);