wmadec: Reset converted on each iteration.
authorAndre Noll <maan@systemlinux.org>
Tue, 5 Jan 2010 02:51:20 +0000 (03:51 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 5 Jan 2010 02:51:20 +0000 (03:51 +0100)
wmadec does not work at all in btr mode without this fix.

wmadec_filter.c

index 8d6af40..7c25a74 100644 (file)
@@ -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)