From c10749d51f2b77eb1b38909d790e7d3895a97364 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Thu, 1 Mar 2018 17:40:44 +0700 Subject: [PATCH] Fix intermittent audio driver crash during startup on Android set_pause can be called before the driver is initialized, and there already is a check for that. The problem is that the 'active' field was not initialied in the constructor, which lead to it having an undefined value. --- platform/android/audio_driver_opensl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/android/audio_driver_opensl.cpp b/platform/android/audio_driver_opensl.cpp index bc77a4e729d..e6bd3ff2538 100644 --- a/platform/android/audio_driver_opensl.cpp +++ b/platform/android/audio_driver_opensl.cpp @@ -271,4 +271,5 @@ AudioDriverOpenSL::AudioDriverOpenSL() { s_ad = this; mutex = Mutex::create(); //NULL; pause = false; + active = false; }