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

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


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

opensles_android: reset all itfs on stop

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

(cherry picked from commit 345a9c2903a6463e5dd0e5d51b0c174aafd4ab81)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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 0419d4560f..5bac736256 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