Commit ac7ce735 authored by Max Kellermann's avatar Max Kellermann

player/Thread: cancel audio when decoder startup on seek fails

Fixes assertion failure in MultipleOutputs::Open() after seeking to a failing song during playback.
parent 4c6619e6
......@@ -213,6 +213,11 @@ private:
bool WaitDecoderStartup() {
while (decoder_starting) {
if (!CheckDecoderStartup()) {
/* if decoder startup fails, make sure
the previous song is not being
played anymore */
pc.outputs.Cancel();
pc.LockCommandFinished();
return false;
}
......
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