Browse Source

hds: fix crash if bootstrap data or URL are missing

pull/170/head
Tristan Matthews 1 year ago
committed by Steve Lhomme
parent
commit
01934b339c
  1. 4
      modules/stream_filter/hds/hds.c

4
modules/stream_filter/hds/hds.c

@ -1555,7 +1555,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m )
new_stream->metadata_len = medias[i].metadata_len;
}
if( ! sys->live )
if( ! sys->live && bootstraps[j].data )
{
parse_BootstrapData( VLC_OBJECT(s),
new_stream,
@ -1577,7 +1577,7 @@ static int parse_Manifest( stream_t *s, manifest_t *m )
total_duration += chunk->duration;
}
}
else
else if( bootstraps[j].url )
{
if( !(new_stream->abst_url = strdup( bootstraps[j].url ) ) )
{

Loading…
Cancel
Save