[libbluray-devel] [PATCH] Add possibility to to check whether BD-J is functional without actually opening a disc.

Andreas Zelend ace at kodi.tv
Sat May 27 22:06:33 CEST 2017


From: ace20022 <ace20022 at ymail.com>

---
 src/libbluray/bluray.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 5119cab5..211598fb 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1388,6 +1388,15 @@ BLURAY *bd_init(void)
         bd->bdjstorage.no_persistent_storage = !v;
     }
 
+    bd->disc_info.bdj_supported = 1;
+
+    /* Check if jvm + jar can be loaded ? */
+    switch (bdj_jvm_available(&bd->bdjstorage)) {
+    case 2: bd->disc_info.bdj_handled = 1;
+    case 1: bd->disc_info.libjvm_detected = 1;
+    default:;
+    }
+
     BD_DEBUG(DBG_BLURAY, "BLURAY initialized!\n");
 
     return bd;
-- 
2.12.0.windows.1



More information about the libbluray-devel mailing list