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.
This commit is contained in:
Ruslan Mustakov 2018-03-01 17:40:44 +07:00
parent 8df449100a
commit c10749d51f
1 changed files with 1 additions and 0 deletions

View File

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