Skip to content

Commit dbf8dea

Browse files
committed
[HLSTree] Set period duration also with live stream
with a single period manifest allow the video seek
1 parent f7390c1 commit dbf8dea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parser/HLSTree.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,7 @@ bool adaptive::CHLSTree::ProcessChildManifest(PLAYLIST::CPeriod* period,
902902
uint64_t totalTimeMs = 0;
903903
if (discontCount > 0 || m_hasDiscontSeq)
904904
{
905-
// On live stream you dont know the period end, so dont set the period duration in advance
906-
if (!m_isLive && adp->GetStreamType() != StreamType::SUBTITLE)
905+
if (adp->GetStreamType() != StreamType::SUBTITLE)
907906
{
908907
uint64_t periodDuration =
909908
(rep->GetDuration() * m_periods[discontCount]->GetTimescale()) / rep->GetTimescale();

0 commit comments

Comments
 (0)