[vlc-devel] commit: playlist: Don't lock/unlock where not needed. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Apr 1 21:45:49 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr 1 21:45:34 2008 +0200| [a3ee25ff101492092d75c2e79e1cd0c84949d278]
playlist: Don't lock/unlock where not needed.
Pointed-out-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3ee25ff101492092d75c2e79e1cd0c84949d278
---
src/playlist/loadsave.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/playlist/loadsave.c b/src/playlist/loadsave.c
index 7e5b001..cd27f1c 100644
--- a/src/playlist/loadsave.c
+++ b/src/playlist/loadsave.c
@@ -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;
More information about the vlc-devel
mailing list