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

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
err = parse_Version(s, hls, line);
else if (strncmp(line, "#EXT-X-ENDLIST", 14) == 0)
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);
segment_duration = -1; /* reset duration */
......
Supports Markdown
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