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/aac_plugin.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/decoder/aac_plugin.c') diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 3e8468e9e..8ceed8b2b 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -419,8 +419,6 @@ static int aac_stream_decode(struct decoder * mpd_decoder, break; } - decoder_flush(mpd_decoder); - faacDecClose(decoder); if (b.buffer) free(b.buffer); @@ -556,8 +554,6 @@ static int aac_decode(struct decoder * mpd_decoder, char *path) break; } - decoder_flush(mpd_decoder); - faacDecClose(decoder); if (b.buffer) free(b.buffer); -- cgit v1.2.3