[libbluray-devel] Do not re-use cache dir between discs.

hpi1 git at videolan.org
Tue Nov 4 13:07:19 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov  4 14:06:19 2014 +0200| [68fe6ffb3b8e59c7547d132bb32a4ff72bcb6118] | committer: hpi1

Do not re-use cache dir between discs.

Removing old files fails in Windows if files are open.

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

 src/libbluray/bdj/java/org/videolan/CacheDir.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/bdj/java/org/videolan/CacheDir.java b/src/libbluray/bdj/java/org/videolan/CacheDir.java
index 3cf2339..95e581a 100644
--- a/src/libbluray/bdj/java/org/videolan/CacheDir.java
+++ b/src/libbluray/bdj/java/org/videolan/CacheDir.java
@@ -100,6 +100,7 @@ class CacheDir {
     public static synchronized void remove() {
         if (cacheRoot != null) {
             remove(cacheRoot);
+            cacheRoot = null;
         }
     }
 



More information about the libbluray-devel mailing list