[Android] VideoPlayerActivity: avoid mLibVLC null crash
Jean-Baptiste Kempf
git at videolan.org
Fri Jul 4 04:13:42 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jul 4 04:12:32 2014 +0200| [16c35efa6666e39e62318ff0693451431f169785] | committer: Jean-Baptiste Kempf
VideoPlayerActivity: avoid mLibVLC null crash
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=16c35efa6666e39e62318ff0693451431f169785
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index e3384a4..654654e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1871,6 +1871,9 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
mSurface.setKeepScreenOn(true);
+ if( mLibVLC == null)
+ return;
+
/* WARNING: hack to avoid a crash in mediacodec on KitKat.
* Disable the hardware acceleration the media has a ts extension. */
if (mLocation != null && LibVlcUtil.isKitKatOrLater()) {
More information about the Android
mailing list