]> git.sesse.net Git - vlc/blobdiff - projects/activex/plugin.cpp
activex: stop media_player before releasing it.
[vlc] / projects / activex / plugin.cpp
index 01d5991d663f442f3d549c1682e0b8f3c87ae575..a76a90e5a163358863c32ab8bb4b5d7b91537698 100644 (file)
@@ -1186,6 +1186,8 @@ bool VLCPlugin::playlist_select( int idx )
 
     if( _p_mplayer )
     {
+        if( isPlaying() )
+            playlist_stop();
         player_unregister_events();
         libvlc_media_player_release( _p_mplayer );
         _p_mplayer = NULL;