[libbluray-devel] Silence errors from missing content certificate files

hpi1 git at videolan.org
Sat Nov 21 21:54:31 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Nov 21 22:43:38 2015 +0200| [073224c36856b6b000016f86901fd8916c20c7c8] | committer: hpi1

Silence errors from missing content certificate files

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

 .../bdj/java/com/aacsla/bluray/online/ContentAttribute.java        |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java b/src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java
index 0260e2b..34f59e4 100644
--- a/src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java
+++ b/src/libbluray/bdj/java/com/aacsla/bluray/online/ContentAttribute.java
@@ -50,6 +50,10 @@ public class ContentAttribute {
         try {
             is = new FileInputStream(
                 System.getProperty("bluray.vfs.root") + File.separator + file);
+        } catch (Exception e) {
+            return null;
+        }
+        try {
             if (is.skip(14) != 14)
                 return null;
             byte[] bytes = new byte[6];



More information about the libbluray-devel mailing list