[libbluray-devel] Add missing synchronized

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:54:39 2016 +0300| [6cec4c5c507bbef4e83d66f8c4fa0caf43ff23b2] | committer: hpi1

Add missing synchronized

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

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

diff --git a/src/libbluray/bdj/java/org/videolan/Libbluray.java b/src/libbluray/bdj/java/org/videolan/Libbluray.java
index 071c1de..4d1201a 100644
--- a/src/libbluray/bdj/java/org/videolan/Libbluray.java
+++ b/src/libbluray/bdj/java/org/videolan/Libbluray.java
@@ -274,7 +274,9 @@ public class Libbluray {
         }
         nativePointer = 0;
         titleInfos = null;
-        bdjoFiles = null;
+        synchronized (bdjoFilesLock) {
+            bdjoFiles = null;
+        }
     }
 
     /*



More information about the libbluray-devel mailing list