Commit 28660c4a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCMediaPlayer: Detach all event types.

parent 74991e0f
......@@ -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 );
}
......
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