Commit 995cd954 authored by Max Kellermann's avatar Max Kellermann

decoder/Thread: flush last chunk only on success

parent fe8a13f7
......@@ -384,7 +384,7 @@ decoder_run_song(DecoderControl &dc,
/* flush the last chunk */
if (decoder.chunk != nullptr)
if (success && decoder.chunk != nullptr)
decoder.FlushChunk();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment