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:
Max Kellermann 2024-05-06 17:38:23 +02:00
parent 1c3a1c842d
commit 4684d05fa6

View File

@ -400,6 +400,8 @@ Player::StopDecoder(std::unique_lock<Mutex> &lock) noexcept
pipe */
ResetCrossFade();
}
decoder_starting = false;
}
bool