[vlc-commits] playlist/m3u: fix missing error handling
Rémi Denis-Courmont
git at videolan.org
Thu Jun 29 18:32:34 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 19:26:03 2017 +0300| [025e62b2e6b42142ba0dd4b51eacbbf0575226fb] | committer: Rémi Denis-Courmont
playlist/m3u: fix missing error handling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=025e62b2e6b42142ba0dd4b51eacbbf0575226fb
---
modules/demux/playlist/m3u.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index ce5452695d..aada88f71f 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -142,7 +142,8 @@ int Import_M3U( vlc_object_t *p_this )
if (b_check_hls && IsHLS(p_peek, i_peek - offset))
return VLC_EGENERIC;
- vlc_stream_Seek( p_stream->p_source, offset );
+ if (offset != 0 && vlc_stream_Seek(p_stream->p_source, offset))
+ return VLC_EGENERIC;
msg_Dbg( p_stream, "found valid M3U playlist" );
p_stream->p_sys = pf_dup;
More information about the vlc-commits
mailing list