Skip to content

Commit 30d92a7

Browse files
committed
[HLSTree] Set period duration also with live stream
with a single period manifest allow the video seek
1 parent 6b8cb37 commit 30d92a7

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
@@ -925,8 +925,7 @@ bool adaptive::CHLSTree::ProcessChildManifest(PLAYLIST::CPeriod* period,
925925
uint64_t totalTimeMs = 0;
926926
if (discontCount > 0 || m_hasDiscontSeq)
927927
{
928-
// On live stream you dont know the period end, so dont set the period duration in advance
929-
if (!m_isLive && adp->GetStreamType() != StreamType::SUBTITLE)
928+
if (adp->GetStreamType() != StreamType::SUBTITLE)
930929
{
931930
uint64_t periodDuration =
932931
(rep->GetDuration() * m_periods[discontCount]->GetTimescale()) / rep->GetTimescale();

0 commit comments

Comments
 (0)