[libbluray-devel] BD-J: use JNI version 1.4

hpi1 git at videolan.org
Thu Dec 20 13:00:23 CET 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Dec 20 13:50:15 2012 +0200| [d483a6ded06c2aaa2d2d19e57a16e18f69f4490d] | committer: hpi1

BD-J: use JNI version 1.4
(Fix building with 1.4 jdk)

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d483a6ded06c2aaa2d2d19e57a16e18f69f4490d
---

 src/libbluray/bdj/bdj.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 558f163..6c37c46 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -134,7 +134,7 @@ BDJAVA* bdj_open(const char *path,
     option[n++].optionString = classpath_opt;
     option[n++].optionString = vfs_opt;
 
-    args.version = JNI_VERSION_1_6;
+    args.version = JNI_VERSION_1_4;
     args.nOptions = n;
     args.options = option;
     args.ignoreUnrecognized = JNI_FALSE; // don't ignore unrecognized options
@@ -171,7 +171,7 @@ int bdj_start(BDJAVA *bdjava, unsigned title)
         return BDJ_ERROR;
     }
 
-    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_6) != JNI_OK) {
+    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_4) != JNI_OK) {
         (*bdjava->jvm)->AttachCurrentThread(bdjava->jvm, (void**)&env, NULL);
         attach = 1;
     }
@@ -201,7 +201,7 @@ int bdj_stop(BDJAVA *bdjava)
         return BDJ_ERROR;
     }
 
-    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_6) != JNI_OK) {
+    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_4) != JNI_OK) {
         (*bdjava->jvm)->AttachCurrentThread(bdjava->jvm, (void**)&env, NULL);
         attach = 1;
     }
@@ -231,7 +231,7 @@ void bdj_close(BDJAVA *bdjava)
     }
 
     if (bdjava->jvm) {
-        if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_6) != JNI_OK) {
+        if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_4) != JNI_OK) {
             (*bdjava->jvm)->AttachCurrentThread(bdjava->jvm, (void**)&env, NULL);
             attach = 1;
         }
@@ -267,7 +267,7 @@ void bdj_process_event(BDJAVA *bdjava, unsigned ev, unsigned param)
         return;
     }
 
-    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_6) != JNI_OK) {
+    if ((*bdjava->jvm)->GetEnv(bdjava->jvm, (void**)&env, JNI_VERSION_1_4) != JNI_OK) {
         (*bdjava->jvm)->AttachCurrentThread(bdjava->jvm, (void**)&env, NULL);
         attach = 1;
     }



More information about the libbluray-devel mailing list