[libbluray-devel] Reduce logging

hpi1 git at videolan.org
Wed Apr 15 10:22:27 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Apr 15 10:59:44 2015 +0300| [0c72a550b7c9c5d6a3ac47acd6ea306ecf8928bc] | committer: hpi1

Reduce logging

Do not log "ERROR: setBounds(0,0,1920,1080) FAILED: already visible" if
window size was already correct.

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

 src/libbluray/bdj/java/java/awt/BDRootWindow.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index ecea4bd..7a0e533 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -67,7 +67,7 @@ public class BDRootWindow extends Frame {
                 }
             }
             super.setBounds(x, y, width, height);
-        } else {
+        } else if (width != getWidth() || height != getHeight()){
             logger.error("setBounds(" + x + "," + y + "," + width + "," + height + ") FAILED: already visible");
         }
     }



More information about the libbluray-devel mailing list