[vlc-devel] [PATCH] playlist: fix playlist_NodeDelete behaviour after b_delete_items removal

Steve Lhomme robux4 at videolabs.io
Thu Nov 17 08:48:33 CET 2016


---
 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 ad41bd2..8bc560f 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -99,8 +99,7 @@ void playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
 
     /* Delete the children */
     for( int i = p_root->i_children - 1 ; i >= 0; i-- )
-        if( p_root->pp_children[i]->i_children >= 0 )
-            playlist_NodeDelete( p_playlist, p_root->pp_children[i], b_force );
+        playlist_NodeDelete( p_playlist, p_root->pp_children[i], b_force );
 
     /* Delete the node */
     if( p_root->i_flags & PLAYLIST_RO_FLAG && !b_force )
-- 
2.10.1



More information about the vlc-devel mailing list