[libbluray-devel] Fix jar resource urls fixing

ace20022 git at videolan.org
Tue Oct 21 09:24:35 CEST 2014


libbluray | branch: master | ace20022 <ace20022 at ymail.com> | Tue Oct 21 10:23:13 2014 +0300| [4b5ff36245ec58bebb51c7f378220dc008d0ca84] | committer: hpi1

Fix jar resource urls fixing

The condition was too strict. On win32 I get, e.g., "file:d:\\BDMV\\JAR\\77771.jar!\\00000.otf".

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

 src/libbluray/bdj/java/java/io/FileInputStream.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/java/io/FileInputStream.java b/src/libbluray/bdj/java/java/io/FileInputStream.java
index 464e42c..cd93a17 100644
--- a/src/libbluray/bdj/java/java/io/FileInputStream.java
+++ b/src/libbluray/bdj/java/java/io/FileInputStream.java
@@ -83,7 +83,7 @@ public class FileInputStream extends InputStream
         }
 
         /* J2SE URL.getPath() returns file:/xxx.jar!/... for jar resource urls ... */
-        if (name.indexOf("file:/") == 0 && name.indexOf(".jar!/") > 0) {
+        if (name.indexOf("file:") == 0 && name.indexOf(".jar!/") > 0) {
             logger.error("Fixing invalid resource url: " + name);
             name = name.substring(name.indexOf(".jar!") + 6);
         }



More information about the libbluray-devel mailing list