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/mp4_plugin.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/decoder/mp4_plugin.c') diff --git a/src/decoder/mp4_plugin.c b/src/decoder/mp4_plugin.c index f2e83d2cd..f6848b508 100644 --- a/src/decoder/mp4_plugin.c +++ b/src/decoder/mp4_plugin.c @@ -298,8 +298,6 @@ mp4_decode(struct decoder *mpd_decoder, struct input_stream *inStream) if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK && seeking) decoder_command_finished(mpd_decoder); - decoder_flush(mpd_decoder); - return 0; } -- cgit v1.2.3