Merge branch 't/opusdec_busy_loop_fix'
authorAndre Noll <maan@systemlinux.org>
Tue, 8 Apr 2014 17:20:35 +0000 (19:20 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 8 Apr 2014 17:20:35 +0000 (19:20 +0200)
A single fix that was cooking since 2014-03-02.

* t/opusdec_busy_loop_fix:
  opusdec: Fix busy loop.

opusdec_filter.c

index d748985..9022fba 100644 (file)
@@ -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);