[libbluray-devel] Add missing lock

hpi1 git at videolan.org
Sun Aug 21 12:37:21 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Aug 21 13:29:01 2016 +0300| [7add762ca71fff090b8bebbbafc5055293e42cfa] | committer: hpi1

Add missing lock

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

 src/libbluray/bdj/java/org/videolan/BDJXletContext.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
index 4f3e725..d076d1a 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJXletContext.java
@@ -468,9 +468,11 @@ public class BDJXletContext implements javax.tv.xlet.XletContext, javax.microedi
 
         exitXlet();
 
-        callbackQueue.shutdown();
-        userEventQueue.shutdown();
-        mediaQueue.shutdown();
+        synchronized (cbLock) {
+            callbackQueue.shutdown();
+            userEventQueue.shutdown();
+            mediaQueue.shutdown();
+        }
 
         EventQueue eq = eventQueue;
         eventQueue = null;



More information about the libbluray-devel mailing list