[libbluray-devel] BDJAppProxy: create Xlet event queue only once

hpi1 git at videolan.org
Mon Jan 20 14:39:42 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 20 15:21:47 2014 +0200| [f293a689f8e814cab83de5233735aa1055b93a6b] | committer: hpi1

BDJAppProxy: create Xlet event queue only once

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

 src/libbluray/bdj/java/org/videolan/BDJAppProxy.java |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java b/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
index 7bab567..06b94c3 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJAppProxy.java
@@ -291,7 +291,8 @@ public class BDJAppProxy implements DVBJProxy, Runnable {
     }
 
     public void run() {
-        context.setEventQueue(new EventQueue());
+        if (context.getEventQueue() == null)
+            context.setEventQueue(new EventQueue());
 
         for (;;) {
             AppCommand cmd;



More information about the libbluray-devel mailing list