mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Merge pull request #7073 from flyinghead/fh/stop-audio-after-unload
Close the audio driver after unload_game to avoid threads deadlocks
This commit is contained in:
commit
1b542a157d
@ -402,7 +402,6 @@ bool core_unload(void)
|
|||||||
bool core_unload_game(void)
|
bool core_unload_game(void)
|
||||||
{
|
{
|
||||||
video_driver_free_hw_context();
|
video_driver_free_hw_context();
|
||||||
audio_driver_stop();
|
|
||||||
|
|
||||||
video_driver_set_cached_frame_ptr(NULL);
|
video_driver_set_cached_frame_ptr(NULL);
|
||||||
|
|
||||||
@ -410,6 +409,8 @@ bool core_unload_game(void)
|
|||||||
|
|
||||||
current_core.game_loaded = false;
|
current_core.game_loaded = false;
|
||||||
|
|
||||||
|
audio_driver_stop();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user