[vlc-commits] commit: activex: stop media_player before releasing it. (Jean-Paul Saman )
git at videolan.org
git at videolan.org
Thu Mar 18 11:19:14 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Feb 16 09:59:07 2010 +0100| [aa2415bdc1c6e6d8e6aa5867881dbdf27a44e3c4] | committer: Jean-Paul Saman
activex: stop media_player before releasing it.
Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa2415bdc1c6e6d8e6aa5867881dbdf27a44e3c4
---
projects/activex/plugin.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/projects/activex/plugin.cpp b/projects/activex/plugin.cpp
index 01d5991..a76a90e 100644
--- a/projects/activex/plugin.cpp
+++ b/projects/activex/plugin.cpp
@@ -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;
More information about the vlc-commits
mailing list