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