From: Andre Noll Date: Tue, 12 Jan 2010 06:25:40 +0000 (+0100) Subject: filter/audiod: Be nice to filters without close method. X-Git-Tag: v0.4.2~135 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e35be295c787fae6e79d35a18a70e988a982b3df;p=paraslash.git filter/audiod: Be nice to filters without close method. --- diff --git a/audiod.c b/audiod.c index 9bb40e07..128f7b42 100644 --- a/audiod.c +++ b/audiod.c @@ -381,7 +381,8 @@ static void close_filters(struct slot_info *s) if (!fn) continue; f = filters + fn->filter_num; - f->close(fn); + if (f->close) + f->close(fn); btr_free_node(fn->btrn); } free(s->fns); diff --git a/filter.c b/filter.c index bf428b36..08398d59 100644 --- a/filter.c +++ b/filter.c @@ -155,7 +155,8 @@ out_cleanup: struct filter_node *fn = fns[i]; f = filters + fn->filter_num; - f->close(fn); + if (f->close) + f->close(fn); btr_free_node(fn->btrn); free(fn->conf); free(fn);