[libbluray-devel] BDHandler: log missing controls

hpi1 git at videolan.org
Sat Apr 4 19:20:34 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Apr  4 16:46:20 2015 +0300| [88eaaa0dc98cbb07cac65083f4c53fc27a297ce8] | committer: hpi1

BDHandler: log missing controls

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

 src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java b/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
index 964d0b7..438d28b 100644
--- a/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
+++ b/src/libbluray/bdj/java/org/videolan/media/content/BDHandler.java
@@ -114,8 +114,10 @@ public abstract class BDHandler implements Player, ServiceContentHandler {
                 if (cls.isInstance(controls[i]))
                     return controls[i];
             }
+            Logger.getLogger("BDHandler").error("getControl(): control not found: " + forName);
             return null;
         } catch (ClassNotFoundException e) {
+            Logger.getLogger("BDHandler").error("getControl(): " + e);
             return null;
         }
     }



More information about the libbluray-devel mailing list