[vlc-commits] commit: playlist: modified playlist_NodeCreate() (Sebastian Birk )

git at videolan.org git at videolan.org
Thu Jun 3 00:32:46 CEST 2010


vlc/vlc-1.1 | branch: master | Sebastian Birk <sebastian.birk at googlemail.com> | Wed Jun  2 11:19:06 2010 +0200| [1e5263f2754ce9680157eeab6f77cd0f15d25586] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=1e5263f2754ce9680157eeab6f77cd0f15d25586
---

 src/playlist/tree.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index eae53bd..e7fdebe 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -85,6 +85,9 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
     playlist_SendAddNotify( p_playlist, p_item->i_id,
                             p_parent ? p_parent->i_id : -1,
                             !( i_flags & PLAYLIST_NO_REBUILD ));
+
+    p_item->i_flags |= i_flags;
+
     return p_item;
 }
 



More information about the vlc-commits mailing list