Commit 8b783e2c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

playlist: playlist_NodeCreate needs the PL_LOCK.

parent 902cddda
......@@ -98,10 +98,12 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
p_playlist->b_auto_preparse =
var_CreateGetBool( p_playlist, "auto-preparse" ) ;
PL_LOCK; /* playlist_NodeCreate will check for it */
p_playlist->p_root_category = playlist_NodeCreate( p_playlist, NULL, NULL,
0, NULL );
p_playlist->p_root_onelevel = playlist_NodeCreate( p_playlist, NULL, NULL,
0, p_playlist->p_root_category->p_input );
PL_UNLOCK;
if( !p_playlist->p_root_category || !p_playlist->p_root_onelevel )
return NULL;
......
......@@ -62,6 +62,7 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
input_item_t *p_new_input = NULL;
playlist_item_t *p_item;
PL_ASSERT_LOCKED;
if( !psz_name ) psz_name = _("Undefined");
if( !p_input )
......
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