]> git.sesse.net Git - vlc/blobdiff - modules/gui/ncurses.c
Fix playlist crasher and simplify a few things
[vlc] / modules / gui / ncurses.c
index 35f82e43dde996a8e6368e6dd3f0c222a6eb8ad8..101d4cf01c5974086afa85cb95da51036fcc98ff 100644 (file)
@@ -565,13 +565,13 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
                 if( p_sys->pp_plist[p_sys->i_box_plidx]->p_item->i_children
                         == -1 )
                 {
-                    playlist_Control( p_sys->p_playlist, PLAYLIST_ITEMPLAY,
+                    playlist_Control( p_sys->p_playlist, PLAYLIST_VIEWPLAY,
+                        NULL,
                         p_sys->pp_plist[p_sys->i_box_plidx]->p_item );
                 }
                 else
                 {
                     playlist_Control( p_sys->p_playlist, PLAYLIST_VIEWPLAY,
-                        p_sys->i_current_view,
                         p_sys->pp_plist[p_sys->i_box_plidx]->p_item,
                         NULL );
                 }