Skip to content

Commit 5bc0155

Browse files
authored
Merge pull request #1266 from bbc/fix/autonext-postroll
Bug fix: currentPart timeline duration should respect postroll in autonext
2 parents 31d94a8 + 7fe60ea commit 5bc0155

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/job-worker/src/playout/timeline/piece.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function getPieceEnableInsidePart(
106106
if (partTimings.toPartPostroll) {
107107
if (!pieceEnable.duration) {
108108
// make sure that the control object is shortened correctly
109-
pieceEnable.duration = `#${partGroupId} - ${partTimings.toPartPostroll}`
109+
pieceEnable.end = `#${partGroupId} - ${partTimings.toPartPostroll}`
110110
}
111111
}
112112

packages/job-worker/src/playout/timeline/rundown.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export function buildTimelineObjsForRundown(
146146
// If there is a valid autonext out of the current part, then calculate the duration
147147
currentPartEnable.duration =
148148
partInstancesInfo.current.partInstance.part.expectedDuration +
149-
partInstancesInfo.current.calculatedTimings.toPartDelay
149+
partInstancesInfo.current.calculatedTimings.toPartDelay +
150+
partInstancesInfo.current.calculatedTimings.toPartPostroll // autonext should have the postroll added to it to not confuse the timeline
150151
}
151152
const currentPartGroup = createPartGroup(partInstancesInfo.current.partInstance, currentPartEnable)
152153

0 commit comments

Comments
 (0)