[Android] Detach views on media player released

Geoffrey Métais git at videolan.org
Tue Jul 24 10:50:48 CEST 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 23 15:57:29 2018 +0200| [3422e506b9177de77cec2521cab595e8e642c68f] | committer: Geoffrey Métais

Detach views on media player released

(cherry picked from commit b04f1d58532e47ee5b0f59c06253af404f7ce5ac)

> https://code.videolan.org/videolan/vlc-android/commit/3422e506b9177de77cec2521cab595e8e642c68f
---

 libvlc/src/org/videolan/libvlc/MediaPlayer.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libvlc/src/org/videolan/libvlc/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
index 8f00202b3..ffea6063c 100644
--- a/libvlc/src/org/videolan/libvlc/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
@@ -1193,6 +1193,7 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
 
     @Override
     protected void onReleaseNative() {
+        mWindow.detachViews();
         registerAudioPlug(false);
 
         if (mMedia != null)



More information about the Android mailing list