Commit 4118fe62fe278429a514c43d02286f8e0c7741df

Sylvain 2021-04-15T20:52:43

Android: OpenSLES, explicitly initialise the global variable 'bqPlayerPlay', it may be read even if OpenSLES back-end hasn't been intialized

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/openslES/SDL_openslES.c b/src/audio/openslES/SDL_openslES.c
index 606d36e..d271724 100644
--- a/src/audio/openslES/SDL_openslES.c
+++ b/src/audio/openslES/SDL_openslES.c
@@ -83,7 +83,7 @@ static SLObjectItf outputMixObject;
 
 /* buffer queue player interfaces */
 static SLObjectItf bqPlayerObject;
-static SLPlayItf bqPlayerPlay;
+static SLPlayItf bqPlayerPlay = NULL;
 static SLAndroidSimpleBufferQueueItf bqPlayerBufferQueue;
 #if 0
 static SLVolumeItf bqPlayerVolume;