When setting up the event listeners the range<br> LibVlcEventType.libvlc_MediaPlayerPlaying to LibVlcEventType.libvlc_MediaPlayerTimeChanged<br> was used but when detaching them the range<br> LibVlcEventType.libvlc_MediaPlayerPlaying to LibVlcEventType.libvlc_MediaPlayerPositionChanged<br>
 was used this can result in a crash at least on windows, updated them to be in sync<br><br>I also added a callbacks.clear after the detach, for symmetry<br>---<br> .../main/java/org/videolan/jvlc/MediaPlayer.java   |    3 ++-<br>
 1 files changed, 2 insertions(+), 1 deletions(-)<br><br>diff --git a/bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java b/bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java<br>index 8590e46..db6a594 100644<br>
--- a/bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java<br>+++ b/bindings/java/core/src/main/java/org/videolan/jvlc/MediaPlayer.java<br>@@ -195,11 +195,12 @@ public class MediaPlayer<br>         {<br>             for (LibVlcEventType event : EnumSet.range(<br>
                 LibVlcEventType.libvlc_MediaPlayerPlaying,<br>-                LibVlcEventType.libvlc_MediaPlayerPositionChanged))<br>+                LibVlcEventType.libvlc_MediaPlayerTimeChanged))<br>             {<br>
                 libvlc.libvlc_event_detach(eventManager, event.ordinal(), callback, null, exception);<br>             }<br>         }<br>+        callbacks.clear();<br>         libvlc.libvlc_media_player_release(instance);<br>
         <br>     }<br>-- <br>1.6.1.9.g97c34<br>