decoder/Thread: flush last chunk only on success

This commit is contained in:
Max Kellermann 2016-05-13 13:01:31 +02:00
parent fe8a13f76f
commit 995cd95474
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ decoder_run_song(DecoderControl &dc,
/* flush the last chunk */
if (decoder.chunk != nullptr)
if (success && decoder.chunk != nullptr)
decoder.FlushChunk();
}