Commit ea693838 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Rémi Denis-Courmont

mozilla: stop playing on page reload and when already playing

parent 6d4dc61e
......@@ -495,6 +495,8 @@ VlcPlugin::~VlcPlugin()
if( libvlc_media_player )
{
if( playlist_isplaying() )
playlist_stop();
events.unhook_manager();
libvlc_media_player_release( libvlc_media_player );
}
......
......@@ -237,6 +237,8 @@ public:
void playlist_play()
{
if( playlist_isplaying() )
playlist_stop();
if( libvlc_media_player||playlist_select(0) )
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