]> git.sesse.net Git - vlc/commitdiff
activex: stop media_player before releasing it.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 16 Feb 2010 08:59:07 +0000 (09:59 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 18 Mar 2010 10:16:02 +0000 (11:16 +0100)
Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
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;