Commit 6e3e18c6 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Fix the return value of playlist_ItemToNode when the node has to be created.

Fixes asserts in directory module.
parent 1f293c20
...@@ -610,7 +610,7 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist, ...@@ -610,7 +610,7 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
{ {
ChangeToNode( p_playlist, p_item ); ChangeToNode( p_playlist, p_item );
PL_UNLOCK_IF( !b_locked ); PL_UNLOCK_IF( !b_locked );
return NULL; return p_item;
} }
} }
......
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