player/Thread: reset the decoder_starting
flag in StopDecoder()
Fixes crash bug (assertion failure) if a new "play" command is handled while the player thread waits for decoder startup.
This commit is contained in:
parent
1c3a1c842d
commit
4684d05fa6
@ -400,6 +400,8 @@ Player::StopDecoder(std::unique_lock<Mutex> &lock) noexcept
|
|||||||
pipe */
|
pipe */
|
||||||
ResetCrossFade();
|
ResetCrossFade();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
decoder_starting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user