decoder/Thread: flush last chunk only on success
This commit is contained in:
parent
fe8a13f76f
commit
995cd95474
|
@ -384,7 +384,7 @@ decoder_run_song(DecoderControl &dc,
|
|||
|
||||
/* flush the last chunk */
|
||||
|
||||
if (decoder.chunk != nullptr)
|
||||
if (success && decoder.chunk != nullptr)
|
||||
decoder.FlushChunk();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue