[vlc-commits] wpl: handle FindPrefix() failure
Rémi Denis-Courmont
git at videolan.org
Mon Jul 25 23:44:46 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 26 00:04:21 2016 +0300| [30508bc044fea3a5df2befaca4276877bc256ca5] | committer: Rémi Denis-Courmont
wpl: handle FindPrefix() failure
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30508bc044fea3a5df2befaca4276877bc256ca5
---
modules/demux/playlist/wpl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/playlist/wpl.c b/modules/demux/playlist/wpl.c
index cdd3dd4..b801eae 100644
--- a/modules/demux/playlist/wpl.c
+++ b/modules/demux/playlist/wpl.c
@@ -140,6 +140,8 @@ static int Demux( demux_t* p_demux )
input_item_t* p_input = GetCurrentItem( p_demux );
input_item_node_t* p_node = input_item_node_Create( p_input );
p_sys->psz_prefix = FindPrefix( p_demux );
+ if( unlikely(p_sys->psz_prefix == NULL) )
+ return VLC_DEMUXER_EOF;
do
{
More information about the vlc-commits
mailing list