[libbluray-devel] Cast CallStaticBooleanMethod() parameters to match Java signature

hpi1 git at videolan.org
Thu Mar 30 11:55:17 CEST 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Mar 30 12:27:51 2017 +0300| [00c96c661739fc3c756b1fdbeb9264ad1fd150d7] | committer: hpi1

Cast CallStaticBooleanMethod() parameters to match Java signature

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

 src/libbluray/bdj/bdj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 96b3332..eeb3040 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -933,7 +933,7 @@ int bdj_process_event(BDJAVA *bdjava, unsigned ev, unsigned param)
 
     if (_get_method(env, &event_class, &event_id,
                        "org/videolan/Libbluray", "processEvent", "(II)Z")) {
-        if ((*env)->CallStaticBooleanMethod(env, event_class, event_id, ev, param)) {
+        if ((*env)->CallStaticBooleanMethod(env, event_class, event_id, (jint)ev, (jint)param)) {
             result = 0;
         }
 



More information about the libbluray-devel mailing list