buffer_tree: Improve btr_splice_out_node().
[paraslash.git] / wav_filter.c
index ccf923e..eaef1f5 100644 (file)
@@ -113,7 +113,7 @@ static int wav_post_select(__a_unused struct sched *s, struct task *t)
        ret = -E_WAV_SUCCESS;
 err:
        if (ret == -E_WAV_SUCCESS)
-               btr_splice_out_node(btrn);
+               btr_splice_out_node(&fn->btrn);
        else {
                btr_remove_node(&fn->btrn);
                PARA_ERROR_LOG("%s\n", para_strerror(-ret));
@@ -131,6 +131,5 @@ void wav_filter_init(struct filter *f)
        f->close = wav_close;
        f->open = wav_open;
        f->pre_select = wav_pre_select;
-       f->new_post_select = wav_post_select;
-       f->post_select = NULL;
+       f->post_select = wav_post_select;
 }