play.c: Check whether filter ->close() is NULL.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 28 Jun 2015 14:21:23 +0000 (16:21 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 3 May 2016 23:01:45 +0000 (01:01 +0200)
commit7afafb8acd2c8ad14802fd2dcfed5567c97454cb
treeba8009a15b91ece2135dc0127d23f0579fe2037e
parentb74bb1b8dbd1fbe2bbd918ae7a77ebafba674e7c
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.
play.c