Commit e27ff969 authored by Rafaël Carré's avatar Rafaël Carré

playlist_Clear() should delete only the local playlist, not the root playlist...

playlist_Clear() should delete only the local playlist, not the root playlist (including the media library, and the read only services discovery)
parent 7c1af3c1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment