[libbluray-devel] EventManager: add logging

hpi1 git at videolan.org
Tue Mar 29 12:50:53 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 28 17:17:26 2016 +0300| [88cb2b63c53501b0fb58b59f4a8cf0b3e8cf832b] | committer: hpi1

EventManager: add logging

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

 src/libbluray/bdj/java/org/dvb/event/EventManager.java |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/libbluray/bdj/java/org/dvb/event/EventManager.java b/src/libbluray/bdj/java/org/dvb/event/EventManager.java
index 9b7206e..54ce6ac 100644
--- a/src/libbluray/bdj/java/org/dvb/event/EventManager.java
+++ b/src/libbluray/bdj/java/org/dvb/event/EventManager.java
@@ -167,10 +167,13 @@ public class EventManager implements ResourceServer {
                 if (item.context == context) {
                     if (item.userEvents.contains(ue)) {
                         result = BDJHelper.postKeyEvent(type, modifiers, keyCode);
+                        logger.info("Key posted to exclusive AWT event listener, r=" + result);
                         return true;
                     }
                 }
             }
+        } else {
+            logger.info("No focused HScene found !");
         }
 
         for (Iterator it = exclusiveUserEventListener.iterator(); it.hasNext(); ) {
@@ -182,6 +185,7 @@ public class EventManager implements ResourceServer {
             }
             if (item.userEvents.contains(ue)) {
                 item.context.putUserEvent(new UserEventAction(item, ue));
+                logger.info("Key posted to exclusive UE listener");
                 return true;
             }
         }
@@ -197,6 +201,7 @@ public class EventManager implements ResourceServer {
             }
             if (item.userEvents.contains(ue)) {
                 item.context.putUserEvent(new UserEventAction(item, ue));
+                logger.info("Key posted to shared UE listener");
                 result = true;
             }
         }



More information about the libbluray-devel mailing list