[vlc-commits] playlist: playlist_NodeDeleteExplicit: fixup of comments
Filip Roséen
git at videolan.org
Sun May 21 21:22:16 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Sun May 21 20:48:18 2017 +0200| [a26356c43f6d0c2e452fe8b9793bbc143c1e5d46] | committer: Rémi Denis-Courmont
playlist: playlist_NodeDeleteExplicit: fixup of comments
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.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a26356c43f6d0c2e452fe8b9793bbc143c1e5d46
---
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 )
More information about the vlc-commits
mailing list