[libbluray-devel] Log java version
hpi1
git at videolan.org
Fri Jan 24 20:30:03 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jan 24 12:55:14 2014 +0200| [00459c59b242122e4628ae411e1cd1900a16cdf3] | committer: hpi1
Log java version
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=00459c59b242122e4628ae411e1cd1900a16cdf3
---
src/libbluray/bdj/bdj.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 7fc9ab0..842950c 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -444,6 +444,11 @@ BDJAVA* bdj_open(const char *path, struct bluray *bd,
return NULL;
}
+ if (debug_mask & DBG_JNI) {
+ int version = (int)(*env)->GetVersion(env);
+ BD_DEBUG(DBG_BDJ, "Java version: %d.%d\n", version >> 16, version & 0xffff);
+ }
+
if (!_bdj_init(bdjava, env)) {
bdj_close(bdjava);
return NULL;
More information about the libbluray-devel
mailing list