[libbluray-devel] Print error message if freetype loading fails

hpi1 git at videolan.org
Tue May 21 16:07:31 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue May 21 16:48:18 2013 +0300| [3da471baf21ee54736947da61710b5673eb65150] | committer: hpi1

Print error message if freetype loading fails

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

 src/libbluray/bdj/java/java/awt/BDFontMetrics.java |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
index 0c6afb1..aa597f9 100644
--- a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
+++ b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
@@ -40,8 +40,10 @@ public class BDFontMetrics extends FontMetrics {
 
         ftLib = initN();
 
-        if (ftLib == 0)
+        if (ftLib == 0) {
+            System.err.println("freetype library not loaded");
             throw new AWTError("freetype lib not loaded");
+        }
 
         Runtime.getRuntime().addShutdownHook(
             new Thread() {



More information about the libbluray-devel mailing list