[libbluray-devel] [Git][videolan/libbluray][master] bdj: add additional jli paths for macOS
Petri Hintukainen
gitlab at videolan.org
Tue Nov 12 15:54:01 CET 2019
Petri Hintukainen pushed to branch master at VideoLAN / libbluray
Commits:
137974c5 by Marvin Scholz at 2019-11-12T11:49:49Z
bdj: add additional jli paths for macOS
- - - - -
1 changed file:
- src/libbluray/bdj/bdj.c
Changes:
=====================================
src/libbluray/bdj/bdj.c
=====================================
@@ -343,19 +343,23 @@ static void *_jvm_dlopen_a(const char *java_home,
static void *_load_jli_macos()
{
const char *java_home = NULL;
- static const char jli_dir[] = "jre/lib/jli";
+ static const char * const jli_dir[] = {
+ "jre/lib/jli", "lib/jli",
+ };
+ const unsigned num_jli_dir = sizeof(jli_dir) / sizeof(jli_dir[0]);
+
static const char jli_lib[] = "libjli";
void *handle;
/* JAVA_HOME set, use it */
java_home = getenv("JAVA_HOME");
if (java_home) {
- return _jvm_dlopen(java_home, jli_dir, jli_lib);
+ return _jvm_dlopen_a(java_home, jli_dir, num_jli_dir, jli_lib);
}
java_home = _java_home_macos();
if (java_home) {
- handle = _jvm_dlopen(java_home, jli_dir, jli_lib);
+ handle = _jvm_dlopen_a(java_home, jli_dir, num_jli_dir, jli_lib);
if (handle) {
return handle;
}
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/137974c5edbf994504d702e228a9164b86c352ff
--
View it on GitLab: https://code.videolan.org/videolan/libbluray/commit/137974c5edbf994504d702e228a9164b86c352ff
You're receiving this email because of your account on code.videolan.org.
More information about the libbluray-devel
mailing list