Skip to content

Commit 1132ad0

Browse files
committed
Ensure we recalculate timings when we queue segments
1 parent ac306b6 commit 1132ad0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/job-worker/src/playout/setNext.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ export async function queueNextSegment(
529529
} else {
530530
playoutModel.setQueuedSegment(null)
531531
}
532+
533+
// Recalculate timer estimates as the queued segment affects what comes after next
534+
recalculateTTimerEstimates(context, playoutModel)
535+
532536
span?.end()
533537
return { queuedSegmentId: queuedSegment?.segment?._id ?? null }
534538
}

0 commit comments

Comments
 (0)