]> git.sesse.net Git - vlc/commitdiff
activex: stop playing on page reload
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Fri, 12 Mar 2010 11:59:57 +0000 (12:59 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 18 Mar 2010 10:16:03 +0000 (11:16 +0100)
projects/activex/plugin.cpp

index a76a90e5a163358863c32ab8bb4b5d7b91537698..1d9a23f79ed0262c0cda227fa73cc2b3624651ec 100644 (file)
@@ -274,6 +274,9 @@ VLCPlugin::~VLCPlugin()
 
     if( _p_mplayer )
     {
+        if( isPlaying() )
+            playlist_stop();
+
         player_unregister_events();
         libvlc_media_player_release(_p_mplayer);
         _p_mplayer=NULL;