[vlc-commits] demux: hls: fix typo

Zhao Zhili git at videolan.org
Fri Nov 3 17:46:47 CET 2017


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Nov  2 22:06:34 2017 +0800| [8b52be9171f9c93de3321b94e23ba16a9625e3cd] | committer: Francois Cartegnie

demux: hls: fix typo

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

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

 modules/demux/hls/playlist/Parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 9cba6f1903..92672ba421 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -379,7 +379,7 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
 {
     char *psz_line = vlc_stream_ReadLine(p_stream);
     if(!psz_line || strncmp(psz_line, "#EXTM3U", 7) ||
-       (psz_line[0] && !std::isspace(psz_line[7])))
+       (psz_line[7] && !std::isspace(psz_line[7])))
     {
         free(psz_line);
         return NULL;



More information about the vlc-commits mailing list