Commit 39007831 authored by Zhao Zhili's avatar Zhao Zhili Committed by François Cartegnie

demux: hls: avoid redundant update of playlist

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent b6c43967
......@@ -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);
}
}
......
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