Commit a95520f9 authored by Filippo Carone's avatar Filippo Carone

jvlc: only log if the media player event is not handled

parent 415ada5a
......@@ -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);
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment