From 4118fe62fe278429a514c43d02286f8e0c7741df Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 15 Apr 2021 20:52:43 +0200 Subject: [PATCH] Android: OpenSLES, explicitly initialise the global variable 'bqPlayerPlay', it may be read even if OpenSLES back-end hasn't been intialized --- src/audio/openslES/SDL_openslES.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/openslES/SDL_openslES.c b/src/audio/openslES/SDL_openslES.c index 606d36ee4..d271724db 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;