]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 8d6af40b679302adf3ff3754af3846c6bf2cf265..7c25a74a4358cd76bfcaf88e8a1d8d7e502a75b8 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)