]> git.sesse.net Git - vlc/commitdiff
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 34504b24950a0496bf8f24d47bf5c66b1bcb7625..e6355630c86fac6d0f7d69bae02943d8b945ebbf 100644 (file)
@@ -39,6 +39,7 @@ MediaPlayer::MediaPlayer( Media &media )
 
 MediaPlayer::~MediaPlayer()
 {
+    stop();
     libvlc_media_player_release( m_player );
 }