/*
- * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
static int mp3dec_parse_config(int argc, char **argv, void **config)
{
- int ret;
- struct mp3dec_filter_args_info *mp3_conf;
+ struct mp3dec_filter_args_info *conf = para_calloc(sizeof(*conf));
- mp3_conf = para_calloc(sizeof(*mp3_conf));
- ret = -E_MP3DEC_SYNTAX;
- if (mp3dec_filter_cmdline_parser(argc, argv, mp3_conf))
- goto err;
- *config = mp3_conf;
+ mp3dec_filter_cmdline_parser(argc, argv, conf);
+ *config = conf;
return 1;
-err:
- free(mp3_conf);
- return ret;
}
static int mp3dec_execute(struct btr_node *btrn, const char *cmd, char **result)