[libbluray-devel] Log errors

hpi1 git at videolan.org
Sun Apr 17 14:28:15 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 15 14:33:43 2016 +0300| [3addb622c502bf20954830229d1c9aa8f9becce9] | committer: hpi1

Log errors

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

 src/libbluray/bdj/java/java/awt/BDGraphicsBase.java |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
index 72ef25f..5504d30 100644
--- a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
@@ -245,8 +245,10 @@ abstract class BDGraphicsBase extends DVBGraphics implements ConstrainableGraphi
 
     public void setComposite(Composite comp) {
         if ((comp != null) && (comp != composite)) {
-            if (!(comp instanceof AlphaComposite))
+            if (!(comp instanceof AlphaComposite)) {
+                logger.error("Composite is not AlphaComposite");
                 throw new IllegalArgumentException("Only AlphaComposite is supported");
+            }
             composite = (AlphaComposite) comp;
         }
     }
@@ -308,8 +310,10 @@ abstract class BDGraphicsBase extends DVBGraphics implements ConstrainableGraphi
         } else if (clip instanceof Rectangle) {
             Rectangle rect = (Rectangle) clip;
             setClip(rect.x, rect.y, rect.width, rect.height);
-        } else
+        } else {
+            logger.error("Shape is not Rectangle: " + clip.getClass().getName());
             throw new IllegalArgumentException("setClip(Shape) only supports Rectangle objects");
+        }
     }
 
     private void setupClip() {



More information about the libbluray-devel mailing list