Commit a0b699c9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

hls: Fixing playlist reloading.

This patch fixes a case triggered when alive stream does not "have" a meta playlist. In
that case hls_Copy would fail as the uri is NULL. Restore the old behaviour by using the
base URL locations as input.
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
(cherry picked from commit 64df9df7c3ec0141d8f9421e9177b2a94e21dba3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 21caf19b
......@@ -1094,7 +1094,11 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
else
{
/* No Meta playlist used */
hls = hls_New(streams, 0, 0, NULL);
char* uri = ConstructUrl( &s->p_sys->m3u8 );
if ( uri == NULL )
return VLC_EGENERIC;
hls = hls_New(streams, 0, 0, uri);
free( uri );
if (hls)
{
/* Get TARGET-DURATION first */
......
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