[Android] libvlcjni: fix crash with honeycomb
Thomas Guillem
git at videolan.org
Mon Dec 7 14:21:54 CET 2015
vlc-android | branch: 1.7.x | Thomas Guillem <thomas at gllm.fr> | Tue Dec 1 17:42:33 2015 +0100| [9dcb8643b2c523773e3b874232c04d79e9ac2ceb] | committer: Jean-Baptiste Kempf
libvlcjni: fix crash with honeycomb
use compat weak reference.
(cherry picked from commit e28734ed5cc5138c1abdfb5a8e85f037f90d6c51)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> https://code.videolan.org/videolan/vlc-android/commit/9dcb8643b2c523773e3b874232c04d79e9ac2ceb
---
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