[Android] libvlcjni: fix crash with honeycomb

Thomas Guillem git at videolan.org
Tue Dec 1 17:42:45 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec  1 17:42:33 2015 +0100| [e28734ed5cc5138c1abdfb5a8e85f037f90d6c51] | committer: Thomas Guillem

libvlcjni: fix crash with honeycomb

use compat weak reference.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e28734ed5cc5138c1abdfb5a8e85f037f90d6c51
---

 libvlc/jni/libvlcjni.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index 1a4639d..034a350 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -207,9 +207,9 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved)
            fields.VLCObject.clazz,
            "dispatchEventFromNative", "(IJF)V");
 
-    if (fields.SDK_INT <= 10)
+    if (fields.SDK_INT <= 13)
     {
-        LOGE("fields.SDK_INT is less than 10: using compat WeakReference");
+        LOGE("fields.SDK_INT is less than 13 (honeycomb_mr2): using compat WeakReference");
         GET_ID(GetMethodID,
                fields.VLCObject.getWeakReferenceID,
                fields.VLCObject.clazz,



More information about the Android mailing list