From: Pierre d'Herbemont Date: Tue, 22 Jul 2008 19:27:05 +0000 (+0200) Subject: playlist: Fix the return value of playlist_ItemToNode when the node has to be created. X-Git-Tag: 0.9.0-test3~328 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6e3e18c6fabf8e0d4af051bd290de60ddf1a2375;p=vlc playlist: Fix the return value of playlist_ItemToNode when the node has to be created. Fixes asserts in directory module. --- diff --git a/src/playlist/item.c b/src/playlist/item.c index bf4db8b72c..32eda97faa 100644 --- a/src/playlist/item.c +++ b/src/playlist/item.c @@ -610,7 +610,7 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist, { ChangeToNode( p_playlist, p_item ); PL_UNLOCK_IF( !b_locked ); - return NULL; + return p_item; } }