libvlcpp: stop the media player in the destructor.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 2 Feb 2010 09:49:56 +0000 (10:49 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 2 Feb 2010 10:07:19 +0000 (11:07 +0100)
bindings/libvlcpp/src/media_player.cpp

index 34504b2..e635563 100644 (file)
@@ -39,6 +39,7 @@ MediaPlayer::MediaPlayer( Media &media )
 
 MediaPlayer::~MediaPlayer()
 {
+    stop();
     libvlc_media_player_release( m_player );
 }