[libbluray-devel] Remove invalid cast
hpi1
git at videolan.org
Thu May 4 13:47:01 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu May 4 14:27:54 2017 +0300| [ffa9ed7d8c689994b5808e4ff0deba4a9ca5bc93] | committer: hpi1
Remove invalid cast
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ffa9ed7d8c689994b5808e4ff0deba4a9ca5bc93
---
src/libbluray/bdj/bdj.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index eeb3040f..1714cd0b 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -653,7 +653,9 @@ int bdj_jvm_available(BDJ_STORAGE *storage)
static int _find_jvm(void *jvm_lib, JNIEnv **env, JavaVM **jvm)
{
- fptr_JNI_GetCreatedJavaVMs JNI_GetCreatedJavaVMs_fp = (fptr_JNI_GetCreatedJavaVMs)(intptr_t)dl_dlsym(jvm_lib, "JNI_GetCreatedJavaVMs");
+ fptr_JNI_GetCreatedJavaVMs JNI_GetCreatedJavaVMs_fp;
+
+ *(void **)&JNI_GetCreatedJavaVMs_fp = dl_dlsym(jvm_lib, "JNI_GetCreatedJavaVMs");
if (JNI_GetCreatedJavaVMs_fp == NULL) {
BD_DEBUG(DBG_BDJ | DBG_CRIT, "Couldn't find symbol JNI_GetCreatedJavaVMs.\n");
return 0;
More information about the libbluray-devel
mailing list