Procházet zdrojové kódy

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.
Ruslan Mustakov před 7 roky
rodič
revize
c10749d51f
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      platform/android/audio_driver_opensl.cpp

+ 1 - 0
platform/android/audio_driver_opensl.cpp

@@ -271,4 +271,5 @@ AudioDriverOpenSL::AudioDriverOpenSL() {
 	s_ad = this;
 	mutex = Mutex::create(); //NULL;
 	pause = false;
+	active = false;
 }