[vlc-devel] commit: directory: playlist_NodeCreate needs a lock. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Jul 15 13:19:22 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul 15 13:10:02 2008 +0200| [7b6ad1735535ad12338cb2739f5065a829ac5469]
directory: playlist_NodeCreate needs a lock.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b6ad1735535ad12338cb2739f5065a829ac5469
---
modules/access/directory.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/access/directory.c b/modules/access/directory.c
index 49051dd..1cde314 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -483,9 +483,11 @@ static int ReadDir( playlist_t *p_playlist, const char *psz_name,
msg_Dbg (p_playlist, "creating subdirectory %s", psz_uri);
+ PL_LOCK;
p_node = playlist_NodeCreate( p_playlist, entry,
p_parent_category,
PLAYLIST_NO_REBUILD, NULL );
+ PL_UNLOCK;
/* If we had the parent in category, the it is now node.
* Else, we still don't have */
More information about the vlc-devel
mailing list