[vlc-commits] commit: ncurses: fix playlist locking problem ( Rafaël Carré )
git at videolan.org
git at videolan.org
Tue Oct 26 15:49:05 CEST 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Oct 26 15:25:02 2010 +0200| [2ae4d9ebb64dad290cfe535038452999048bd001] | committer: Rafaël Carré
ncurses: fix playlist locking problem
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ae4d9ebb64dad290cfe535038452999048bd001
---
modules/gui/ncurses.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 85fa88f..c95a133 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1650,9 +1650,8 @@ static int HandleKey(intf_thread_t *p_intf)
if (!p_parent)
{
playlist_item_t *p_item;
- p_item = playlist_CurrentPlayingItem(p_playlist);
-
PL_LOCK;
+ p_item = playlist_CurrentPlayingItem(p_playlist);
p_parent = p_item ? p_item->p_parent : NULL;
PL_UNLOCK;
if (!p_parent)
More information about the vlc-commits
mailing list