]> git.sesse.net Git - vlc/commitdiff
playlist_Clear() should delete only the local playlist, not the root playlist (includ...
authorRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 21:32:24 +0000 (21:32 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 21 Oct 2007 21:32:24 +0000 (21:32 +0000)
src/playlist/item.c

index 28634fe85c32252daee5f4a6385b3cf314882d3e..cf2911e41089243bd9a030f26d97b08265b29a58 100644 (file)
@@ -230,8 +230,8 @@ int playlist_DeleteFromInput( playlist_t *p_playlist, int i_input_id,
 void playlist_Clear( playlist_t * p_playlist, vlc_bool_t b_locked )
 {
     if( !b_locked ) PL_LOCK;
-    playlist_NodeEmpty( p_playlist, p_playlist->p_root_category, VLC_TRUE );
-    playlist_NodeEmpty( p_playlist, p_playlist->p_root_onelevel, VLC_TRUE );
+    playlist_NodeEmpty( p_playlist, p_playlist->p_local_category, VLC_TRUE );
+    playlist_NodeEmpty( p_playlist, p_playlist->p_local_onelevel, VLC_TRUE );
     if( !b_locked ) PL_UNLOCK;
 }