Commit 6eda4e0c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HLS: PROGRAM-ID is not mandatory in EXT-X-STREAM-INF

parent a4f46a9c
......@@ -653,13 +653,13 @@ static int parse_StreamInformation(stream_t *s, vlc_array_t **hls_stream,
assert(*hls == NULL);
attr = parse_Attributes(p_read, "PROGRAM-ID");
if (attr == NULL)
if (attr)
{
msg_Err(s, "#EXT-X-STREAM-INF: expected PROGRAM-ID=<value>");
return VLC_EGENERIC;
id = atol(attr);
free(attr);
}
id = atol(attr);
free(attr);
else
id = 0;
attr = parse_Attributes(p_read, "BANDWIDTH");
if (attr == NULL)
......
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