[Android] PlaybackService: detach video views before releasing the MediaPlayer
Thomas Guillem
git at videolan.org
Mon Oct 2 13:44:11 CEST 2017
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 2 13:43:33 2017 +0200| [caa0860ff99fd256dfa9c5c19ffad4eff85d2981] | committer: Thomas Guillem
PlaybackService: detach video views before releasing the MediaPlayer
> https://code.videolan.org/videolan/vlc-android/commit/caa0860ff99fd256dfa9c5c19ffad4eff85d2981
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 57e6c9a8d..0218cf72e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -354,6 +354,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
unregisterReceiver(mRemoteControlClientReceiver);
mRemoteControlClientReceiver = null;
}
+ if (isVideoPlaying())
+ mMediaPlayer.getVLCVout().detachViews();
VLCApplication.runBackground(new Runnable() {
@Override
public void run() {
More information about the Android
mailing list