Commit 0bb627da authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

src/playlist/item.c: Avoid a dead lock.

parent 065cee9a
...@@ -417,7 +417,10 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist, ...@@ -417,7 +417,10 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
ChangeToNode( p_playlist, p_item_in_category ); ChangeToNode( p_playlist, p_item_in_category );
if( !p_item_in_one ) if( !p_item_in_one )
{
if( !b_locked ) PL_UNLOCK;
return p_item_in_category; return p_item_in_category;
}
/* Item in one is a root, change it to node */ /* Item in one is a root, change it to node */
if( p_item_in_one->p_parent == p_playlist->p_root_onelevel ) if( p_item_in_one->p_parent == p_playlist->p_root_onelevel )
......
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