You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
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 c10749d51f)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
9c27e4d885
commit
61a9ef5d81
@@ -273,4 +273,5 @@ AudioDriverOpenSL::AudioDriverOpenSL() {
|
||||
s_ad = this;
|
||||
mutex = Mutex::create(); //NULL;
|
||||
pause = false;
|
||||
active = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user