player/Thread: cancel audio when decoder startup on seek fails
Fixes assertion failure in MultipleOutputs::Open() after seeking to a failing song during playback.
This commit is contained in:
parent
4c6619e6c5
commit
ac7ce73526
@ -213,6 +213,11 @@ private:
|
|||||||
bool WaitDecoderStartup() {
|
bool WaitDecoderStartup() {
|
||||||
while (decoder_starting) {
|
while (decoder_starting) {
|
||||||
if (!CheckDecoderStartup()) {
|
if (!CheckDecoderStartup()) {
|
||||||
|
/* if decoder startup fails, make sure
|
||||||
|
the previous song is not being
|
||||||
|
played anymore */
|
||||||
|
pc.outputs.Cancel();
|
||||||
|
|
||||||
pc.LockCommandFinished();
|
pc.LockCommandFinished();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user