projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 't/oggdec_latency_improvements'
[paraslash.git]
/
flacdec_filter.c
diff --git
a/flacdec_filter.c
b/flacdec_filter.c
index 01937e93f7fdbf2897e4404ffbb9e7781af392bd..2a58044c59baef2ba898e2d33b642846657e7efd 100644
(file)
--- a/
flacdec_filter.c
+++ b/
flacdec_filter.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2011-201
3
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2011-201
4
Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
@@
-258,10
+258,12
@@
static int flacdec_post_select(__a_unused struct sched *s, struct task *t)
goto out;
if (state == FLAC__STREAM_DECODER_ABORTED) {
FLAC__stream_decoder_flush(pfd->decoder);
goto out;
if (state == FLAC__STREAM_DECODER_ABORTED) {
FLAC__stream_decoder_flush(pfd->decoder);
- fn->min_iqs = pfd->unconsumed + 1;
+ pfd->unconsumed = 0; /* feed unconsumed bytes again */
+ fn->min_iqs = btr_get_input_queue_size(btrn) + 1;
ret = 1;
goto out;
}
ret = 1;
goto out;
}
+ pfd->have_more = true;
fn->min_iqs = 0;
ret = 1;
out:
fn->min_iqs = 0;
ret = 1;
out: