[vlc-devel] commit: playlist: Fix the return value of playlist_ItemToNode when the node has to be created . (Pierre d'Herbemont )

git version control git at videolan.org
Tue Jul 22 21:25:45 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul 22 21:27:05 2008 +0200| [6e3e18c6fabf8e0d4af051bd290de60ddf1a2375]

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

Fixes asserts in directory module.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e3e18c6fabf8e0d4af051bd290de60ddf1a2375
---

 src/playlist/item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/playlist/item.c b/src/playlist/item.c
index bf4db8b..32eda97 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;
     }
 }
 




More information about the vlc-devel mailing list