]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - oggdec_filter.c
ogg_pre_select(): Remove __a_unused.
[paraslash.git] / oggdec_filter.c
index 042e13b001796821f424547bb73710c827b1ec67..0fa56f1187294f1148b3672c74e1b2ccf9f8568d 100644 (file)
@@ -92,24 +92,22 @@ static const ov_callbacks ovc = {
 
 static void ogg_open(struct filter_node *fn)
 {
-       struct private_oggdec_data *pod = para_calloc(
-               sizeof(struct private_oggdec_data));
-
-       fn->private_data = pod;
+       fn->private_data = para_calloc(sizeof(struct private_oggdec_data));
        fn->min_iqs = 8000;
 }
 
 static void ogg_close(struct filter_node *fn)
 {
        struct private_oggdec_data *pod = fn->private_data;
-       if (pod->vf) {
+
+       if (pod && pod->vf) {
                PARA_DEBUG_LOG("ov_clearing %p, pod = %p\n", pod->vf, pod);
                ov_clear(pod->vf);
                free(pod->vf);
                pod->vf = NULL;
        } else
                PARA_DEBUG_LOG("nothing to close\n");
-       free(fn->private_data);
+       free(pod);
        fn->private_data = NULL;
 }
 
@@ -179,7 +177,7 @@ out:
        return ret;
 }
 
-static void ogg_pre_select(__a_unused struct sched *s, struct task *t)
+static void ogg_pre_select(struct sched *s, struct task *t)
 {
        struct filter_node *fn = container_of(t, struct filter_node, task);
        int ret;