Commit 2ae4d9eb authored by Rafaël Carré's avatar Rafaël Carré

ncurses: fix playlist locking problem

parent 8b6530c2
...@@ -1650,9 +1650,8 @@ static int HandleKey(intf_thread_t *p_intf) ...@@ -1650,9 +1650,8 @@ static int HandleKey(intf_thread_t *p_intf)
if (!p_parent) if (!p_parent)
{ {
playlist_item_t *p_item; playlist_item_t *p_item;
p_item = playlist_CurrentPlayingItem(p_playlist);
PL_LOCK; PL_LOCK;
p_item = playlist_CurrentPlayingItem(p_playlist);
p_parent = p_item ? p_item->p_parent : NULL; p_parent = p_item ? p_item->p_parent : NULL;
PL_UNLOCK; PL_UNLOCK;
if (!p_parent) if (!p_parent)
......
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