[Android] LibVLC: Sanity check

Geoffrey Métais git at videolan.org
Tue Feb 26 14:59:41 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 26 14:45:22 2019 +0100| [dfb5d9d99780a362f9257897a280a0d1c7fbfb20] | committer: Geoffrey Métais

LibVLC: Sanity check

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

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

diff --git a/libvlc/src/org/videolan/libvlc/VideoHelper.java b/libvlc/src/org/videolan/libvlc/VideoHelper.java
index 3e0019c5a..00b3215a4 100644
--- a/libvlc/src/org/videolan/libvlc/VideoHelper.java
+++ b/libvlc/src/org/videolan/libvlc/VideoHelper.java
@@ -126,6 +126,7 @@ class VideoHelper implements IVLCVout.OnNewVideoLayoutListener {
     }
 
     private void changeMediaPlayerLayout(int displayW, int displayH) {
+        if (mMediaPlayer.isReleased()) return;
         /* Change the video placement using the MediaPlayer API */
         switch (mCurrentScaleType) {
             case SURFACE_BEST_FIT:



More information about the Android mailing list