Skip to content

Commit

Permalink
Merge branch 'bbc-release51-3' into fix/autonext-postroll
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC89 committed Sep 26, 2024
1 parent 59c3e1b commit a1966e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/job-worker/src/playout/timeline/piece.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function getPieceEnableInsidePart(
if (partHasEndTime && partTimings.toPartPostroll) {
if (!pieceEnable.duration) {
// make sure that the control object is shortened correctly
pieceEnable.duration = `#${partGroupId} - ${partTimings.toPartPostroll}`
pieceEnable.end = `#${partGroupId} - ${partTimings.toPartPostroll}`
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/job-worker/src/playout/timeline/rundown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ export function buildTimelineObjsForRundown(
) {
// If there is a valid autonext out of the current part, then calculate the duration
currentPartEnable.duration =
partInstancesInfo.current.partInstance.part.expectedDuration +
partInstancesInfo.current.calculatedTimings.toPartDelay
partInstancesInfo.current.calculatedTimings.toPartDelay +
partInstancesInfo.current.calculatedTimings.toPartPostroll // autonext should have the postroll added to it to not confuse the timeline

if (
typeof currentPartEnable.start === 'number' &&
Expand Down

0 comments on commit a1966e9

Please sign in to comment.