From 61a9ef5d81acad525cb1c98829b6be4e11f8bef0 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. (cherry picked from commit c10749d51f2b77eb1b38909d790e7d3895a97364) --- 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 87a7d04e011..0fe2db35141 100644 --- a/platform/android/audio_driver_opensl.cpp +++ b/platform/android/audio_driver_opensl.cpp @@ -273,4 +273,5 @@ AudioDriverOpenSL::AudioDriverOpenSL() { s_ad = this; mutex = Mutex::create(); //NULL; pause = false; + active = false; }