[libbluray-devel] BDToolkit: Use File.isAbsolute() instead of File.exists() when resolving image location

hpi1 git at videolan.org
Mon Jan 20 14:39:41 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 20 14:59:33 2014 +0200| [194421c3d0dc97822d6f523ce90b944610bc370a] | committer: hpi1

BDToolkit: Use File.isAbsolute() instead of File.exists() when resolving image location

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

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

diff --git a/src/libbluray/bdj/java/java/awt/BDToolkitBase.java b/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
index 4998343..0940b36 100644
--- a/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
@@ -131,7 +131,7 @@ abstract class BDToolkitBase extends Toolkit {
     }
 
     public Image createImage(String filename) {
-        if (!new File(filename).exists()) {
+        if (!new File(filename).isAbsolute()) {
             URL url = BDJXletContext.getCurrentResource(filename);
             if (url != null) {
                 logger.warning("" + filename + " translated to " + url);



More information about the libbluray-devel mailing list