[libbluray-devel] improved logging

hpi1 git at videolan.org
Fri Dec 4 09:58:37 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Dec  4 09:52:19 2015 +0200| [7b46c2189956079af8504af148e9a6711af8a687] | committer: hpi1

improved logging

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

 src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java         |    1 +
 src/libbluray/bdj/java/org/videolan/MountManager.java        |    1 +
 .../bdj/java/org/videolan/media/content/PlayerManager.java   |   10 ++++++++--
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
index 54c24e5..77ce66e 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphics.java
@@ -53,6 +53,7 @@ class BDGraphics extends BDGraphicsBase {
 
     public java.awt.font.FontRenderContext getFontRenderContext()
     {
+        logger.unimplemented("getFontRenderContext");
         return null;
     }
     public void setPaint(Paint p) {
diff --git a/src/libbluray/bdj/java/org/videolan/MountManager.java b/src/libbluray/bdj/java/org/videolan/MountManager.java
index 5c9660a..6f6fd52 100644
--- a/src/libbluray/bdj/java/org/videolan/MountManager.java
+++ b/src/libbluray/bdj/java/org/videolan/MountManager.java
@@ -185,6 +185,7 @@ public class MountManager {
                 new PrivilegedAction() {
                     public Object run() {
                         if (mountPoint.decRefCount() < 1) {
+                            logger.error("Removing JAR " + id + " from mount cache");
                             mountPoints.remove(id);
                         }
                         return null;
diff --git a/src/libbluray/bdj/java/org/videolan/media/content/PlayerManager.java b/src/libbluray/bdj/java/org/videolan/media/content/PlayerManager.java
index cc06e84..d45358b 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/PlayerManager.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/PlayerManager.java
@@ -19,6 +19,7 @@
 package org.videolan.media.content;
 
 import java.util.ArrayList;
+import org.videolan.Logger;
 
 public class PlayerManager {
 
@@ -81,7 +82,7 @@ public class PlayerManager {
             return;
         }
 
-        System.err.println("unknown player type: " + player.getClass().getName());
+        logger.error("unknown player type: " + player.getClass().getName());
     }
 
     protected boolean allocateResource(BDHandler player) {
@@ -91,6 +92,9 @@ public class PlayerManager {
             }
             synchronized (playlistPlayerLock) {
                 if (playlistPlayer != null && player != playlistPlayer) {
+
+                    logger.info("allocateResource(): Stopping old playlist player");
+
                     playlistPlayer.stop();
                     playlistPlayer.deallocate();
                 }
@@ -108,7 +112,7 @@ public class PlayerManager {
             return true;
         }
 
-        System.err.println("unknown player type: " + player.getClass().getName());
+        logger.error("allocateResource(): unknown player type: " + player.getClass().getName());
         return false;
     }
 
@@ -153,4 +157,6 @@ public class PlayerManager {
         }
         }
     }
+
+    private static final Logger logger = Logger.getLogger(PlayerManager.class.getName());
 }



More information about the libbluray-devel mailing list