From: Andre Noll Date: Tue, 5 Jan 2010 02:51:20 +0000 (+0100) Subject: wmadec: Reset converted on each iteration. X-Git-Tag: v0.4.2~200 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=01b40fb41cbfaa2d5f053b9985daedc8b7184fdd;hp=aa234b7afe223879a7bd7274ce05a3a315a2ec49 wmadec: Reset converted on each iteration. wmadec does not work at all in btr mode without this fix. --- 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)