Skip to content
Snippets Groups Projects
Commit 39007831 authored by Zhao Zhili's avatar Zhao Zhili Committed by François Cartegnie
Browse files

demux: hls: avoid redundant update of playlist


Signed-off-by: default avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent b6c43967
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,12 @@ void M3U8Parser::createAndFillRepresentation(vlc_object_t *p_obj, BaseAdaptation
if(rep)
{
parseSegments(p_obj, rep, tagslist);
if(rep->isLive())
{
/* avoid update playlist immediately */
uint64_t startseq = rep->getLiveStartSegmentNumber(0);
rep->scheduleNextUpdate(startseq);
}
adaptSet->addRepresentation(rep);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment