From 01b40fb41cbfaa2d5f053b9985daedc8b7184fdd Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 5 Jan 2010 03:51:20 +0100 Subject: [PATCH] wmadec: Reset converted on each iteration. wmadec does not work at all in btr mode without this fix. --- wmadec_filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wmadec_filter.c b/wmadec_filter.c index 8d6af40b..7c25a74a 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -1230,13 +1230,14 @@ static int wmadec_execute(struct btr_node *btrn, const char *cmd, char **result) static void wmadec_post_select(__a_unused struct sched *s, struct task *t) { struct filter_node *fn = container_of(t, struct filter_node, task); - int ret, converted = 0; + int ret, converted; struct private_wmadec_data *pwd = fn->private_data; struct btr_node *btrn = fn->btrn; size_t len; char *in; next_buffer: + converted = 0; t->error = 0; ret = btr_node_status(btrn, fn->min_iqs); if (ret < 0) -- 2.39.5