From 241a0d21827794701ad5750e078b409d3a42459e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 23 Feb 2014 13:44:19 +0100 Subject: [PATCH 1/1] 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. --- opusdec_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2