From 73a1a1396dc46c4534548b78f44b8125a146444d Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 4 Jun 2006 21:52:00 +0200 Subject: [PATCH] filter_chain: Don't return eof too early The current code may miss to transform the remaining buffer if the receiver has already deactivated its task. Check for the number of loaded bytes in the input buffer of the filter chain and return eof only if nothing is loaded. --- filter_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_chain.c b/filter_chain.c index 4114ca77..2d82a22c 100644 --- a/filter_chain.c +++ b/filter_chain.c @@ -124,7 +124,7 @@ void filter_pre_select(__a_unused struct sched *s, struct task *t) t->ret = -E_FC_EOF; if (fc->output_eof && *fc->output_eof) goto err_out; - if (fc->input_eof && *fc->input_eof) + if (fc->input_eof && *fc->input_eof && !*fc->in_loaded) goto err_out; again: ib = fc->inbuf; -- 2.39.2