]> git.sesse.net Git - vlc/blobdiff - projects/activex/plugin.cpp
activex: stop playing on page reload
[vlc] / 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;