[vlc-devel] [PATCH 8/8] playlist: playlist_NodeDeleteExplicit: fixup of comments

Filip Roséen filip at atch.se
Sun May 21 20:48:18 CEST 2017


The usage of "next" in the second comment is plain wrong, as we are
dealing with a currently playing item, not an upcoming one. The first
comment is redundant.
---
 src/playlist/tree.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index 891be5456f..32d67acebb 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -121,10 +121,9 @@ void playlist_NodeDeleteExplicit( playlist_t *p_playlist,
             ARRAY_REMOVE( p_playlist->items, i );
     }
 
-    /* Check if it is the current item */
     if( get_current_status_item( p_playlist ) == p_root )
     {
-        /* This item can't be the next one to be played ! */
+        /* a deleted item cannot be currently playing */
         set_current_status_item( p_playlist, NULL );
 
         if( flags & PLAYLIST_DELETE_STOP_IF_CURRENT )
-- 
2.13.0


More information about the vlc-devel mailing list