Introduce btr_node_status() and add btr support to the file writer.
[paraslash.git] / wmadec_filter.c
index 214ceb1b2851cab7a368d4b2001ad976d958644f..d214b421d355c5163f389b61c494bf151cafafec 100644 (file)
@@ -1238,11 +1238,12 @@ static void wmadec_post_select(__a_unused struct sched *s, struct task *t)
 
 next_buffer:
        t->error = 0;
-       ret = prepare_filter_node(fn);
+       ret = btr_node_status(btrn, fn->min_iqs);
        if (ret < 0)
                goto err;
        if (ret == 0)
                return;
+       btr_merge(btrn, fn->min_iqs);
        len = btr_next_buffer(btrn, (char **)&in);
        ret = -E_WMADEC_EOF;
        if (len < fn->min_iqs)