X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=prebuffer_filter.c;h=9c6fda56b78430b0f979ec2503299460d00f5212;hp=7fea2dfccd978c001148e2721273114f7349d4c9;hb=1d5d66070093bcac96de40dd6bced93ab7bc15a8;hpb=217c259f244ec0d00e90a313b3a8b6e79d77054f diff --git a/prebuffer_filter.c b/prebuffer_filter.c index 7fea2dfc..9c6fda56 100644 --- a/prebuffer_filter.c +++ b/prebuffer_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andre Noll + * Copyright (C) 2009-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file prebuffer_filter.c Paraslash's prebuffering filter. */ #include -#include #include "para.h" #include "prebuffer_filter.cmdline.h" @@ -56,7 +55,6 @@ static void prebuffer_pre_select(struct sched *s, struct task *t) static void prebuffer_close(struct filter_node *fn) { free(fn->private_data); - free(fn->buf); } static void prebuffer_post_select(__a_unused struct sched *s, struct task *t) @@ -75,7 +73,6 @@ static void prebuffer_post_select(__a_unused struct sched *s, struct task *t) if (iqs < conf->size_arg) return; btr_splice_out_node(btrn); - prebuffer_close(fn); t->error = -E_PREBUFFER_SUCCESS; } @@ -107,8 +104,6 @@ static void prebuffer_open(struct filter_node *fn) ppd->conf = fn->conf; fn->private_data = ppd; - fn->bufsize = 8192; /* gets increased on demand */ - fn->buf = para_malloc(fn->bufsize); } static void prebuffer_free_config(void *conf)