[vlc-commits] playlist/directory: add missing return check
Thomas Guillem
git at videolan.org
Mon Apr 4 10:23:09 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 2 17:47:27 2016 +0100| [d596aa1cd44a3d2d6b02297fadd0a4c558ee36d9] | committer: Thomas Guillem
playlist/directory: add missing return check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d596aa1cd44a3d2d6b02297fadd0a4c558ee36d9
---
modules/demux/playlist/directory.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/playlist/directory.c b/modules/demux/playlist/directory.c
index e357952..4ad4d76 100644
--- a/modules/demux/playlist/directory.c
+++ b/modules/demux/playlist/directory.c
@@ -153,6 +153,11 @@ static int Demux( demux_t *p_demux )
p_input = GetCurrentItem( p_demux );
p_node = input_item_node_Create( p_input );
+ if( p_node == NULL )
+ {
+ input_item_Release( p_input );
+ return VLC_ENOMEM;
+ }
p_node->b_can_loop = p_demux->p_sys->b_dir_can_loop;
input_item_Release(p_input);
More information about the vlc-commits
mailing list