[libbluray-devel] BDJActionQueue: make some noise if created from Xlet context
hpi1
git at videolan.org
Mon Apr 14 20:38:55 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 14 12:44:38 2014 +0300| [70ad63052ce3216746437da6b2c3fac977ff09fb] | committer: hpi1
BDJActionQueue: make some noise if created from Xlet context
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=70ad63052ce3216746437da6b2c3fac977ff09fb
---
src/libbluray/bdj/java/org/videolan/BDJActionQueue.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/libbluray/bdj/java/org/videolan/BDJActionQueue.java b/src/libbluray/bdj/java/org/videolan/BDJActionQueue.java
index ee5850d..185c1f7 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJActionQueue.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJActionQueue.java
@@ -26,6 +26,12 @@ class BDJActionQueue implements Runnable {
}
public BDJActionQueue(BDJThreadGroup threadGroup, String name) {
+ if (threadGroup == null) {
+ if (BDJXletContext.getCurrentContext() != null) {
+ Logger.getLogger(BDJActionQueue.class.getName()).error("BDJActionQueue created from wrong context: " + Logger.dumpStack());
+ }
+ }
+
/* run all actions in given thread group / xlet context */
thread = new Thread(threadGroup, this, name + ".BDJActionQueue");
thread.setDaemon(true);
More information about the libbluray-devel
mailing list