[libbluray-devel] bdjo_make_jobj() should be called only from Java thread
hpi1
git at videolan.org
Sun Aug 7 13:33:27 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Aug 7 13:47:24 2016 +0300| [abee5d0e6183ece53666db49580363ea4c884de8] | committer: hpi1
bdjo_make_jobj() should be called only from Java thread
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=abee5d0e6183ece53666db49580363ea4c884de8
---
src/libbluray/bdj/native/bdjo.c | 6 ++++++
src/libbluray/bdj/native/bdjo.h | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/src/libbluray/bdj/native/bdjo.c b/src/libbluray/bdj/native/bdjo.c
index e9f71a5..0a0410a 100644
--- a/src/libbluray/bdj/native/bdjo.c
+++ b/src/libbluray/bdj/native/bdjo.c
@@ -17,6 +17,12 @@
* <http://www.gnu.org/licenses/>.
*/
+/*
+ * Note:
+ * This module should be called only from Java side.
+ * If it is called from native C thread, lot of references are leaked !
+ */
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/src/libbluray/bdj/native/bdjo.h b/src/libbluray/bdj/native/bdjo.h
index 4f35a60..997347f 100644
--- a/src/libbluray/bdj/native/bdjo.h
+++ b/src/libbluray/bdj/native/bdjo.h
@@ -26,6 +26,12 @@
struct bdjo_data;
+/*
+ * Note:
+ * This function should be called only from Java side.
+ * If it is called from native C thread, lot of references are leaked !
+ */
+
BD_PRIVATE jobject bdjo_make_jobj(JNIEnv* env, const struct bdjo_data *bdjo);
#endif /* BDJO_H_ */
More information about the libbluray-devel
mailing list