[libbluray-devel] MountManager: prefer cached .jar files

hpi1 git at videolan.org
Thu Apr 30 10:09:53 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Apr 21 15:07:47 2015 +0300| [5190bfd90cb6fc7b25dec503f7f80266e3dc4c01] | committer: hpi1

MountManager: prefer cached .jar files

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

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

diff --git a/src/libbluray/bdj/java/org/videolan/MountManager.java b/src/libbluray/bdj/java/org/videolan/MountManager.java
index 07e7359..83d6870 100644
--- a/src/libbluray/bdj/java/org/videolan/MountManager.java
+++ b/src/libbluray/bdj/java/org/videolan/MountManager.java
@@ -73,7 +73,7 @@ public class MountManager {
                 }
             }
 
-            String path = System.getProperty("bluray.vfs.root") + "/BDMV/JAR/" + jarStr + ".jar";
+            String path = BDJLoader.getCachedFile(System.getProperty("bluray.vfs.root") + relJarDir + jarStr + ".jar");
 
             JarFile jar = null;
             try {
@@ -232,6 +232,7 @@ public class MountManager {
         return BDJUtil.makeFiveDigitStr(jarId);
     }
 
+    private static final String relJarDir = new String(File.separator + "BDMV" + File.separator + "JAR" + File.separator);
     private static Map mountPoints = new HashMap();
     private static final Logger logger = Logger.getLogger(MountManager.class.getName());
 



More information about the libbluray-devel mailing list