From 528b7c3f5e7afc155058eeba631aa93ba9f42b0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Oct 2008 17:29:06 +0100 Subject: decoder: automatically flush the output buffer after decoder exits A decoder_flush() invocation was missing in the FLAC plugin, resulting in casual assertion failures due to a wrong assumption about the last chunk's audio format. It's much easier to remove that decoder_flush() function and make the decoder thread call ob_flush(). --- src/decoder_api.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/decoder_api.c') diff --git a/src/decoder_api.c b/src/decoder_api.c index f407a77d3..7888ebb95 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -206,8 +206,3 @@ decoder_data(struct decoder *decoder, return DECODE_COMMAND_NONE; } - -void decoder_flush(mpd_unused struct decoder *decoder) -{ - ob_flush(); -} -- cgit v1.2.3