Skip to content

Commit 59646ef

Browse files
authored
Merge pull request #1794 from CastagnaIT/hls_period_dur_omega
[backport][HLSTree] Set period duration also with live stream
2 parents dcfcbb5 + dbf8dea commit 59646ef

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
@@ -910,8 +910,7 @@ bool adaptive::CHLSTree::ProcessChildManifest(PLAYLIST::CPeriod* period,
910910
uint64_t totalTimeMs = 0;
911911
if (discontCount > 0 || m_hasDiscontSeq)
912912
{
913-
// On live stream you dont know the period end, so dont set the period duration in advance
914-
if (!m_isLive && adp->GetStreamType() != StreamType::SUBTITLE)
913+
if (adp->GetStreamType() != StreamType::SUBTITLE)
915914
{
916915
uint64_t periodDuration =
917916
(rep->GetDuration() * m_periods[discontCount]->GetTimescale()) / rep->GetTimescale();

0 commit comments

Comments
 (0)