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/audiofile_plugin.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/decoder/audiofile_plugin.c') diff --git a/src/decoder/audiofile_plugin.c b/src/decoder/audiofile_plugin.c index 513b3815f..5e5eb2cb6 100644 --- a/src/decoder/audiofile_plugin.c +++ b/src/decoder/audiofile_plugin.c @@ -110,10 +110,7 @@ static int audiofile_decode(struct decoder * decoder, char *path) bitRate, NULL); } while (decoder_get_command(decoder) != DECODE_COMMAND_STOP); - decoder_flush(decoder); - afCloseFile(af_fp); - return 0; } -- cgit v1.2.3