Commit 62d4347c authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: check that we actually don't add empty line to segments

parent 0b06c282
...@@ -938,7 +938,7 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const ...@@ -938,7 +938,7 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
err = parse_Version(s, hls, line); err = parse_Version(s, hls, line);
else if (strncmp(line, "#EXT-X-ENDLIST", 14) == 0) else if (strncmp(line, "#EXT-X-ENDLIST", 14) == 0)
err = parse_EndList(s, hls); err = parse_EndList(s, hls);
else if (strncmp(line, "#", 1) != 0) else if ((strncmp(line, "#", 1) != 0) && (*line != '\0') )
{ {
err = parse_AddSegment(s, hls, segment_duration, line); err = parse_AddSegment(s, hls, segment_duration, line);
segment_duration = -1; /* reset duration */ segment_duration = -1; /* reset duration */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment