[vlc-commits] opensles_android: reset all itfs on stop

Thomas Guillem git at videolan.org
Thu Mar 1 13:07:40 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar  1 13:06:43 2018 +0100| [345a9c2903a6463e5dd0e5d51b0c174aafd4ab81] | committer: Thomas Guillem

opensles_android: reset all itfs on stop

This fixes a crash when setting the volume after a valid playback.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=345a9c2903a6463e5dd0e5d51b0c174aafd4ab81
---

 modules/audio_output/opensles_android.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 0ca215b551..e954ff6d49 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -508,6 +508,9 @@ static void Stop(audio_output_t *aout)
 
     Destroy(sys->playerObject);
     sys->playerObject = NULL;
+    sys->playerBufferQueue = NULL;
+    sys->volumeItf = NULL;
+    sys->playerPlay = NULL;
 }
 
 /*****************************************************************************



More information about the vlc-commits mailing list