Fix nasty race condition with menu background audio. Fixes #12365

This commit is contained in:
Henrik Rydgård committed 2019-09-27 23:53:31 +02:00
1 parent 701d740207
commit 22ee875ffc
4 files changed
+41 -27

No files matched your search

+1
View File
@@ -734,6 +734,7 @@ void GameInfoCache::WaitUntilDone(std::shared_ptr<GameInfo> &info) {
// Runs on the main thread. Only call from render() and similar, not update()!
// Can also be called from the audio thread for menu background music.
std::shared_ptr<GameInfo> GameInfoCache::GetInfo(Draw::DrawContext *draw, const std::string &gamePath, int wantFlags) {
std::shared_ptr<GameInfo> info;