From: Andre Noll Date: Sun, 28 Jun 2015 14:21:23 +0000 (+0200) Subject: play.c: Check whether filter ->close() is NULL. X-Git-Tag: v0.5.6~33 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=7afafb8acd2c8ad14802fd2dcfed5567c97454cb;hp=7afafb8acd2c8ad14802fd2dcfed5567c97454cb;p=paraslash.git play.c: Check whether filter ->close() is NULL. While audiod.c and filter.c test whether ->close is NULL before they attempt to call the function, play.c calls ->close() unconditionally. This does not matter because all filters provide the close method. But it is documented in filter.h that ->close may be NULL. To avoid future surprises and to be consistent with para_audiod and para_filter, let's change play.c to check for NULL as well. ---