]> git.sesse.net Git - vlc/commitdiff
Hotkeys: remove unuseful test on p_playlist: If p_playlist is NULL here, you are...
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Oct 2008 18:51:33 +0000 (11:51 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Oct 2008 18:53:25 +0000 (11:53 -0700)
Can pl_Hold return NULL ?

modules/control/hotkeys.c

index 976630101d46511dac0ec9de9542c76b38e6d0cc..81d3868aef0fa996822f84d934918c5a95ea70fe 100644 (file)
@@ -193,8 +193,7 @@ static void Run( intf_thread_t *p_intf )
         /* Quit */
         if( i_action == ACTIONID_QUIT )
         {
-            if( p_playlist )
-                playlist_Stop( p_playlist );
+            playlist_Stop( p_playlist );
             vlc_object_kill( p_intf->p_libvlc );
             vlc_object_kill( p_intf );
             ClearChannels( p_intf, p_vout );