[vlc-devel] commit: playlist: Make sure we always have an input_item associated to a playlist_item. ( Pierre d'Herbemont )
git version control
git at videolan.org
Sun Aug 17 20:22:44 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Aug 17 20:15:33 2008 +0200| [357d734fa50c75dcd1bdacc45e291f4989f97ef9] | committer: Pierre d'Herbemont
playlist: Make sure we always have an input_item associated to a playlist_item.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=357d734fa50c75dcd1bdacc45e291f4989f97ef9
---
src/playlist/item.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index d1c152d..d669f80 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -163,6 +163,8 @@ playlist_item_t *playlist_ItemNewFromInput( playlist_t *p_playlist,
{
DECMALLOC_NULL( p_item, playlist_item_t );
+ assert( p_input );
+
p_item->p_input = p_input;
vlc_gc_incref( p_item->p_input );
More information about the vlc-devel
mailing list