[vlc-devel] commit: jvlc: only log if the media player event is not handled ( Filippo Carone )
git version control
git at videolan.org
Fri Jul 25 13:03:38 CEST 2008
vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Fri Jul 25 13:06:05 2008 +0200| [a95520f9ccef90c81b4ae629ae4d52c87982d0c6]
jvlc: only log if the media player event is not handled
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a95520f9ccef90c81b4ae629ae4d52c87982d0c6
---
.../videolan/jvlc/event/MediaPlayerCallback.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java b/bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
index 5533c74..54d67f9 100644
--- a/bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
+++ b/bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
@@ -25,6 +25,8 @@
package org.videolan.jvlc.event;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.videolan.jvlc.MediaPlayer;
import org.videolan.jvlc.internal.LibVlc;
import org.videolan.jvlc.internal.LibVlcEventType;
@@ -41,6 +43,11 @@ public class MediaPlayerCallback implements LibVlcCallback
private MediaPlayerListener listener;
private MediaPlayer mediaInstance;
+ /**
+ * Logger.
+ */
+ private Logger log = LoggerFactory.getLogger(MediaPlayerCallback.class);
+
public MediaPlayerCallback(MediaPlayer mediaInstance, MediaPlayerListener listener)
{
this.mediaInstance = mediaInstance;
@@ -80,7 +87,7 @@ public class MediaPlayerCallback implements LibVlcCallback
}
else
{
- throw new RuntimeException("Unsupported event error. Event id: " + libvlc_event.type);
+ log.debug("Unsupported event error. Event id: {}", libvlc_event.type);
}
}
}
More information about the vlc-devel
mailing list