aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-25 16:23:31 +0100
committerMax Kellermann <max@duempel.org>2009-12-25 16:28:17 +0100
commitc374a7d3f4bdd9764f6d38339d76459eaac98f60 (patch)
treea45144126fcf90067d0a7318d621c6f05192e81f
parent3679d5bd7ac3a64d342b204c821dc6ccb891ad67 (diff)
downloadmpd-c374a7d3f4bdd9764f6d38339d76459eaac98f60.tar.gz
mpd-c374a7d3f4bdd9764f6d38339d76459eaac98f60.tar.xz
mpd-c374a7d3f4bdd9764f6d38339d76459eaac98f60.zip
filter/chain: return NULL if a filter() method has failed
Don't close child filters in the filter() method.
Diffstat (limited to '')
-rw-r--r--src/filter/chain_filter_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filter/chain_filter_plugin.c b/src/filter/chain_filter_plugin.c
index 48100bc4b..edfa70f35 100644
--- a/src/filter/chain_filter_plugin.c
+++ b/src/filter/chain_filter_plugin.c
@@ -143,7 +143,7 @@ chain_filter_filter(struct filter *_filter,
into the current one */
src = filter_filter(filter, src, src_size, &src_size, error_r);
if (src == NULL)
- chain_close_until(chain, filter);
+ return NULL;
}
/* return the output of the last filter */