From d0b4d361365c0e18ed2a7253f91939142eb2dcec Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Dec 2015 15:00:07 +0100 Subject: [PATCH] Set audio_driver_active to false during AUDIO_DRIVER_CTL_DESTROY --- audio/audio_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index ae1081c6dc..f5978240da 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -769,7 +769,9 @@ bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data) case RARCH_AUDIO_CTL_INIT: return init_audio(); case RARCH_AUDIO_CTL_DESTROY: - current_audio = NULL; + audio_driver_active = false; + audio_driver_data_own = false; + current_audio = NULL; break; case RARCH_AUDIO_CTL_DESTROY_DATA: audio_driver_context_audio_data = NULL;