[Android] Awindow: No SurfaceTextureThread before Android JB

Thomas Guillem git at videolan.org
Fri May 19 10:26:53 CEST 2017


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 19 10:26:24 2017 +0200| [48cab8dbed7a6cdd14ba53ad61bf04fc49efe6ac] | committer: Thomas Guillem

Awindow: No SurfaceTextureThread before Android JB

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

 libvlc/src/org/videolan/libvlc/AWindow.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libvlc/src/org/videolan/libvlc/AWindow.java b/libvlc/src/org/videolan/libvlc/AWindow.java
index 262d391..9f1ca45 100644
--- a/libvlc/src/org/videolan/libvlc/AWindow.java
+++ b/libvlc/src/org/videolan/libvlc/AWindow.java
@@ -206,7 +206,8 @@ public class AWindow implements IVLCVout {
     private int mMouseAction = -1, mMouseButton = -1, mMouseX = -1, mMouseY = -1;
     private int mWindowWidth = -1, mWindowHeight = -1;
 
-    private SurfaceTextureThread mSurfaceTextureThread = new SurfaceTextureThread();
+    private SurfaceTextureThread mSurfaceTextureThread = AndroidUtil.isJellyBeanOrLater ?
+            new SurfaceTextureThread() : null;
 
     /**
      * Create an AWindow



More information about the Android mailing list