Browse Source

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

Sylvain 4 years ago
parent
commit
4118fe62fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/audio/openslES/SDL_openslES.c

+ 1 - 1
src/audio/openslES/SDL_openslES.c

@@ -83,7 +83,7 @@ static SLObjectItf outputMixObject;
 
 
 /* buffer queue player interfaces */
 /* buffer queue player interfaces */
 static SLObjectItf bqPlayerObject;
 static SLObjectItf bqPlayerObject;
-static SLPlayItf bqPlayerPlay;
+static SLPlayItf bqPlayerPlay = NULL;
 static SLAndroidSimpleBufferQueueItf bqPlayerBufferQueue;
 static SLAndroidSimpleBufferQueueItf bqPlayerBufferQueue;
 #if 0
 #if 0
 static SLVolumeItf bqPlayerVolume;
 static SLVolumeItf bqPlayerVolume;