]> git.sesse.net Git - vlc/commitdiff
playlist: Fix the return value of playlist_ItemToNode when the node has to be created.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 19:27:05 +0000 (21:27 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 19:28:11 +0000 (21:28 +0200)
Fixes asserts in directory module.

src/playlist/item.c

index bf4db8b72c5daa4a579c6a00c6d6ee3c9c1cd718..32eda97faaa0bd7a5173a5ed8e5e7ba178696a4c 100644 (file)
@@ -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;
     }
 }