[libbluray-devel] Fixed missing java_home when jvm is loaded from same directory as libbluray

hpi1 git at videolan.org
Sun Feb 3 22:20:32 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb  3 23:19:23 2013 +0200| [a861000242e1ea1ab62b5c50cb6723b1da5c6ca1] | committer: hpi1

Fixed missing java_home when jvm is loaded from same directory as libbluray

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

 src/libbluray/bdj/bdj.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 1aac676..9fb0131 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -104,6 +104,10 @@ static void *_load_jvm(const char **p_java_home)
         handle = _jvm_dlopen(jvm_path[path_ind], jvm_dir, jvm_lib);
     }
 
+    if (!*p_java_home) {
+        *p_java_home = dl_get_path();
+    }
+
     return handle;
 }
 



More information about the libbluray-devel mailing list