From 766a63a878ad172d309095427cfd8518068be6b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 3 Aug 2009 21:59:25 +0200 Subject: [PATCH] ncurses: lock playlist in open box --- modules/gui/ncurses.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c index 0421a5ca3a..8bf7d8f2e1 100644 --- a/modules/gui/ncurses.c +++ b/modules/gui/ncurses.c @@ -954,6 +954,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) { playlist_item_t *p_parent = p_sys->p_node; + PL_LOCK; if( !p_parent ) p_parent = playlist_CurrentPlayingItem(p_playlist) ? playlist_CurrentPlayingItem(p_playlist)->p_parent : NULL; if( !p_parent ) @@ -961,6 +962,7 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) while( p_parent->p_parent && p_parent->p_parent->p_parent ) p_parent = p_parent->p_parent; + PL_UNLOCK; playlist_Add( p_playlist, p_sys->psz_open_chain, NULL, PLAYLIST_APPEND|PLAYLIST_GO, PLAYLIST_END, -- 2.39.2