[libbluray-devel] Simplify

hpi1 git at videolan.org
Tue Jun 11 15:15:56 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jun 11 11:38:03 2013 +0300| [4eaeea3a4cbe14a7d13536d90317b0d1c1ca7c5e] | committer: hpi1

Simplify

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

 src/libbluray/bdj/java/java/awt/BDRootWindow.java |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index 112b087..7785438 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -23,6 +23,7 @@ import java.util.Arrays;
 import java.util.Timer;
 import java.util.TimerTask;
 
+import org.videolan.Logger;
 import org.videolan.Libbluray;
 
 public class BDRootWindow extends Frame {
@@ -56,18 +57,18 @@ public class BDRootWindow extends Frame {
 
     public Image getBackBuffer() {
         /* exists only in J2SE */
-        org.videolan.Logger.getLogger("BDRootWindow").unimplemented("getBackBuffer");
+        logger.unimplemented("getBackBuffer");
         return null;
     }
 
     public void notifyChanged() {
         if (!isVisible()) {
-            org.videolan.Logger.getLogger("BDRootWindow").error("sync(): not visible");
+            logger.error("sync(): not visible");
             return;
         }
         synchronized (this) {
             if (timer == null) {
-                org.videolan.Logger.getLogger("BDRootWindow").error("notifyChanged(): window already disposed");
+                logger.error("notifyChanged(): window already disposed");
                 return;
             }
             changeCount++;
@@ -140,7 +141,7 @@ public class BDRootWindow extends Frame {
     /* called when new title starts (window is "created" again) */
     public void clearOverlay() {
         if (overlay_open) {
-            org.videolan.Logger.getLogger("BDRootWindow").error("clearOverlay() ignored (overlay is visible)");
+            logger.error("clearOverlay() ignored (overlay is visible)");
         } else {
             Arrays.fill(backBuffer, 0);
             dirty.clear();
@@ -176,5 +177,7 @@ public class BDRootWindow extends Frame {
     private TimerTask timerTask = null;
     private boolean overlay_open = false;
 
+    private static final Logger logger = Logger.getLogger(BDRootWindow.class.getName());
+
     private static final long serialVersionUID = -8325961861529007953L;
 }



More information about the libbluray-devel mailing list