Commit 1e5263f2 authored by Sebastian Birk's avatar Sebastian Birk Committed by Jean-Baptiste Kempf

playlist: modified playlist_NodeCreate()

The passed flags in the variable i_flags are now applied to the new node.
This solves bug ticket #3690, where it was possible to delete the "Playlist" and
"Media Library" nodes, since the read-only flag was not set for them.
(cherry picked from commit b0db307c4cf3ac509fe33079f132a0dc6c939e22)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 30d67234
...@@ -85,6 +85,9 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, ...@@ -85,6 +85,9 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
playlist_SendAddNotify( p_playlist, p_item->i_id, playlist_SendAddNotify( p_playlist, p_item->i_id,
p_parent ? p_parent->i_id : -1, p_parent ? p_parent->i_id : -1,
!( i_flags & PLAYLIST_NO_REBUILD )); !( i_flags & PLAYLIST_NO_REBUILD ));
p_item->i_flags |= i_flags;
return p_item; return p_item;
} }
......
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