Commit a3ee25ff authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

playlist: Don't lock/unlock where not needed.


Pointed-out-by: Rafaël Carré's avatarRafaël Carré <funman@videolan.org>
parent 800b605e
......@@ -160,12 +160,10 @@ int playlist_MLLoad( playlist_t *p_playlist )
/* We save the input at two different place, incref */
vlc_gc_incref( p_input );
vlc_gc_incref( p_input );
PL_UNLOCK;
vlc_event_attach( &p_input->event_manager, vlc_InputItemSubItemAdded,
input_item_subitem_added, p_playlist );
PL_LOCK;
p_playlist->b_doing_ml = VLC_TRUE;
PL_UNLOCK;
......
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