[libbluray-devel] Add missing JNI logging
hpi1
git at videolan.org
Sun Apr 19 15:02:31 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 19 15:47:12 2015 +0300| [f6ce3112ed413308112cc14159859e32e60ccc13] | committer: hpi1
Add missing JNI logging
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f6ce3112ed413308112cc14159859e32e60ccc13
---
src/libbluray/bdj/native/org_videolan_Libbluray.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index 19c3046..c4a8ba0 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -194,6 +194,8 @@ JNIEXPORT jbyteArray JNICALL Java_org_videolan_Libbluray_getAacsDataN
BLURAY* bd = (BLURAY*)(intptr_t)np;
const uint8_t *data = bd_get_aacs_data(bd, type);
+ BD_DEBUG(DBG_JNI, "getAacsDataN(%d) -> %p\n", (int)type, (const void *)data);
+
if (!data) {
return NULL;
}
@@ -205,12 +207,16 @@ JNIEXPORT jbyteArray JNICALL Java_org_videolan_Libbluray_getAacsDataN
JNIEXPORT jlong JNICALL Java_org_videolan_Libbluray_getUOMaskN(JNIEnv * env,
jclass cls, jlong np) {
BLURAY* bd = (BLURAY*)(intptr_t)np;
+
+ BD_DEBUG(DBG_JNI, "getUOMaskN()\n");
return bd_get_uo_mask(bd);
}
JNIEXPORT void JNICALL Java_org_videolan_Libbluray_setUOMaskN(JNIEnv * env,
jclass cls, jlong np, jboolean menuCallMask, jboolean titleSearchMask) {
BLURAY* bd = (BLURAY*)(intptr_t)np;
+
+ BD_DEBUG(DBG_JNI, "setUOMaskN(%d,%d)\n", (int)menuCallMask, (int)titleSearchMask);
bd_set_bdj_uo_mask(bd, ((!!menuCallMask) * BDJ_MENU_CALL_MASK) | ((!!titleSearchMask) * BDJ_TITLE_SEARCH_MASK));
}
More information about the libbluray-devel
mailing list