Commit 173740fe authored by Zhao Zhili's avatar Zhao Zhili Committed by Jean-Baptiste Kempf

demux: hls: avoid redundant update of playlist

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
(cherry picked from commit 39007831)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 68378c1f
......@@ -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