X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=oggdec_filter.c;h=f14d97c13dec8c2c3fe6660aadb5d7b6d3d2c328;hp=7a52508ec8a7bdc0a2ad0d423f65c44d68b905c0;hb=d96c06ff93493c125b9f4d36655e77d7029ca309;hpb=5c0c60e0efe860962c2d9132f4aef3d9e43b25bc diff --git a/oggdec_filter.c b/oggdec_filter.c index 7a52508e..f14d97c1 100644 --- a/oggdec_filter.c +++ b/oggdec_filter.c @@ -97,11 +97,8 @@ static void ogg_open(struct filter_node *fn) { struct private_oggdec_data *pod = para_calloc( sizeof(struct private_oggdec_data)); - struct oggdec_filter_args_info *conf = fn->conf; fn->private_data = pod; - fn->bufsize = conf->bufsize_arg * 1024; - fn->buf = para_malloc(fn->bufsize); fn->min_iqs = 8000; } @@ -115,8 +112,6 @@ static void ogg_close(struct filter_node *fn) pod->vf = NULL; } else PARA_DEBUG_LOG("nothing to close\n"); - free(fn->buf); - fn->buf = NULL; free(fn->private_data); fn->private_data = NULL; } @@ -130,13 +125,13 @@ static int oggdec_execute(struct btr_node *btrn, const char *cmd, char **result) if (!strcmp(cmd, "samplerate")) { if (pod->samplerate == 0) - return -ERRNO_TO_PARA_ERROR(ENAVAIL); + return -E_BTR_NAVAIL; *result = make_message("%u", pod->samplerate); return 1; } if (!strcmp(cmd, "channels")) { if (pod->channels == 0) - return -ERRNO_TO_PARA_ERROR(ENAVAIL); + return -E_BTR_NAVAIL; *result = make_message("%u", pod->channels); return 1; }