Commit b57a963b authored by Jean-Paul Saman's avatar Jean-Paul Saman

mozilla: stop playing on page reload and when already playing

parent 37b3b800
...@@ -495,6 +495,8 @@ VlcPlugin::~VlcPlugin() ...@@ -495,6 +495,8 @@ VlcPlugin::~VlcPlugin()
if( libvlc_media_player ) if( libvlc_media_player )
{ {
if( playlist_isplaying() )
playlist_stop();
events.unhook_manager(); events.unhook_manager();
libvlc_media_player_release( libvlc_media_player ); libvlc_media_player_release( libvlc_media_player );
} }
......
...@@ -237,6 +237,8 @@ public: ...@@ -237,6 +237,8 @@ public:
void playlist_play() void playlist_play()
{ {
if( playlist_isplaying() )
playlist_stop();
if( libvlc_media_player||playlist_select(0) ) if( libvlc_media_player||playlist_select(0) )
libvlc_media_player_play(libvlc_media_player); libvlc_media_player_play(libvlc_media_player);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment