From: Rafaël Carré Date: Sun, 21 Oct 2007 21:32:24 +0000 (+0000) Subject: playlist_Clear() should delete only the local playlist, not the root playlist (includ... X-Git-Tag: 0.9.0-test0~4861 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e27ff9696e4ba67278a973febf1e2707172bd4a2;p=vlc playlist_Clear() should delete only the local playlist, not the root playlist (including the media library, and the read only services discovery) --- diff --git a/src/playlist/item.c b/src/playlist/item.c index 28634fe85c..cf2911e410 100644 --- a/src/playlist/item.c +++ b/src/playlist/item.c @@ -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; }