]> git.sesse.net Git - vlc/commitdiff
playlist: Don't lock/unlock where not needed.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 1 Apr 2008 19:45:34 +0000 (21:45 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 1 Apr 2008 19:45:34 +0000 (21:45 +0200)
Pointed-out-by: Rafaël Carré <funman@videolan.org>
src/playlist/loadsave.c

index 7e5b001fb9dc03f7756e50ddc8647eeaef69b419..cd27f1c2d6ad1bf01c990648307dea15da415351 100644 (file)
@@ -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;