- return;
- if (iqs < conf->size_arg)
- return;
- btr_splice_out_node(btrn);
- t->error = -E_PREBUFFER_SUCCESS;
-}
-
-static int prebuffer_parse_config(int argc, char **argv, void **config)
-{
- struct prebuffer_filter_args_info *prebuffer_conf
- = para_calloc(sizeof(*prebuffer_conf));
- int ret = -E_PREBUFFER_SYNTAX;
-
- if (prebuffer_cmdline_parser(argc, argv, prebuffer_conf))
- goto err;
- ret = -ERRNO_TO_PARA_ERROR(EINVAL);
- if (prebuffer_conf->duration_arg < 0)
- goto err;
- if (prebuffer_conf->size_arg < 0)
- goto err;
- PARA_NOTICE_LOG("prebuffering %ims, %i bytes\n",
- prebuffer_conf->duration_arg, prebuffer_conf->size_arg);
- *config = prebuffer_conf;
- return 1;
-err:
- free(prebuffer_conf);
+ return 0;
+ if (iqs < size)
+ return 0;
+ btr_splice_out_node(&fn->btrn);
+ return -E_PREBUFFER_SUCCESS;
+fail:
+ btr_remove_node(&fn->btrn);