Commit 64df9df7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Paul Saman

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>
parent 2ad64d87
......@@ -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