[vlmc-devel] VLCMediaPlayer: Detach all event types.

Hugo Beauzée-Luyssen git at videolan.org
Sat Sep 22 18:47:44 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Sep 22 16:46:56 2012 +0300| [28660c4a293f705c71a725551ee94524079264a9] | committer: Hugo Beauzée-Luyssen

VLCMediaPlayer: Detach all event types.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=28660c4a293f705c71a725551ee94524079264a9
---

 src/LibVLCpp/VLCMediaPlayer.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/LibVLCpp/VLCMediaPlayer.cpp b/src/LibVLCpp/VLCMediaPlayer.cpp
index 3475a09..fe4bc54 100644
--- a/src/LibVLCpp/VLCMediaPlayer.cpp
+++ b/src/LibVLCpp/VLCMediaPlayer.cpp
@@ -55,6 +55,10 @@ MediaPlayer::~MediaPlayer()
     libvlc_event_detach( p_em, libvlc_MediaPlayerStopped, callbacks, this );
     libvlc_event_detach( p_em, libvlc_MediaPlayerEndReached, callbacks, this );
     libvlc_event_detach( p_em, libvlc_MediaPlayerPositionChanged, callbacks, this );
+    libvlc_event_detach( p_em, libvlc_MediaPlayerLengthChanged,   callbacks, this );
+    libvlc_event_detach( p_em, libvlc_MediaPlayerEncounteredError,callbacks, this );
+    libvlc_event_detach( p_em, libvlc_MediaPlayerPausableChanged, callbacks, this );
+    libvlc_event_detach( p_em, libvlc_MediaPlayerSeekableChanged, callbacks, this );
     stop();
     libvlc_media_player_release( m_internalPtr );
 }



More information about the Vlmc-devel mailing list