Commit 7b6ad173 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

directory: playlist_NodeCreate needs a lock.

parent 115d0547
......@@ -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 */
......
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