[libbluray-devel] BD-J init: make font loading not fatal

hpi1 git at videolan.org
Sun Feb 21 18:10:52 CET 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 21 19:05:47 2016 +0200| [eb2d974ccd02de84345a98923878c527df94a1b4] | committer: hpi1

BD-J init: make font loading not fatal

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

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

diff --git a/src/libbluray/bdj/java/org/videolan/Libbluray.java b/src/libbluray/bdj/java/org/videolan/Libbluray.java
index 6a97ad7..d74edc4 100644
--- a/src/libbluray/bdj/java/org/videolan/Libbluray.java
+++ b/src/libbluray/bdj/java/org/videolan/Libbluray.java
@@ -135,7 +135,9 @@ public class Libbluray {
         PackageManager.commitContentPrefixList();
         PackageManager.commitProtocolPrefixList();
 
-        BDFontMetrics.init();
+        try {
+            BDFontMetrics.init();
+        } catch (Throwable t) {}
 
         System.setProperty("mhp.profile.enhanced_broadcast", "YES");
         System.setProperty("mhp.profile.interactive_broadcast", "YES");



More information about the libbluray-devel mailing list