projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Use variable-sized input buffer for the audiod pipe.
[paraslash.git]
/
oggdec_filter.c
diff --git
a/oggdec_filter.c
b/oggdec_filter.c
index 0653f7dadd0d7223e27ea9e339d113420aaa7a5f..b158a5e17444112148bd1d33d90dba87e912274e 100644
(file)
--- a/
oggdec_filter.c
+++ b/
oggdec_filter.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2005-200
8
Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-200
9
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.
*/
@@
-125,7
+125,9
@@
static ssize_t ogg_convert(char *inbuffer, size_t len, struct filter_node *fn)
if (!pod->vf) {
int ib = 1024 * conf->initial_buffer_arg; /* initial buffer */
if (!pod->vf) {
int ib = 1024 * conf->initial_buffer_arg; /* initial buffer */
- if (len <ib && !*fn->fc->input_error) {
+ if (*fn->fc->input_error < 0)
+ return *fn->fc->input_error;
+ if (len < ib) {
PARA_DEBUG_LOG("initial input buffer %zd/%d, "
"waiting for more data\n", len, ib);
return 0;
PARA_DEBUG_LOG("initial input buffer %zd/%d, "
"waiting for more data\n", len, ib);
return 0;