hotkey: Stop the playlist on Quit
authorRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 13:10:04 +0000 (13:10 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 13:10:04 +0000 (13:10 +0000)
modules/control/hotkeys.c

index cee9dad..87cdda4 100644 (file)
@@ -235,6 +235,8 @@ static void Run( intf_thread_t *p_intf )
 
         if( i_action == ACTIONID_QUIT )
         {
+            if( p_playlist )
+                playlist_Stop( p_playlist );
             vlc_object_kill( p_intf->p_libvlc );
             vlc_object_kill( p_intf );
             ClearChannels( p_intf, p_vout );