]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - amp_filter.c
Switch audiod over to the buffer tree API.
[paraslash.git] / amp_filter.c
index 3154735e1753c87872963be7f5f7d83c47640655..e91791bf8655e58cbc494901ad232fc1787cbe10 100644 (file)
@@ -116,7 +116,7 @@ static void amp_post_select(__a_unused struct sched *s, struct task *t)
                return;
        }
 next_buffer:
-       ret = btr_node_status(btrn, fn->min_iqs);
+       ret = btr_node_status(btrn, fn->min_iqs, BTR_NT_INTERNAL);
        if (ret < 0)
                goto err;
        if (ret == 0)
@@ -156,6 +156,11 @@ err:
        btr_remove_node(btrn);
 }
 
+static void amp_free_config(void *conf)
+{
+       amp_cmdline_parser_free(conf);
+}
+
 /**
  * The init function of the amplify filter.
  *
@@ -172,6 +177,7 @@ void amp_filter_init(struct filter *f)
        f->pre_select = generic_filter_pre_select;
        f->post_select = amp_post_select;
        f->parse_config = amp_parse_config;
+       f->free_config = amp_free_config;
        f->help = (struct ggo_help) {
                .short_help = amp_filter_args_info_help,
                .detailed_help = amp_filter_args_info_detailed_help