Skip to content

Commit 031b96e

Browse files
committed
fix(EAV-534): duration of pieces with 'now' start time
piece control groups had their `duration` lost in `deNowifyCurrentPieces`, which led to them playing longer than expected (usually until the end of their part)
1 parent 3adaf27 commit 031b96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/job-worker/src/playout/timeline/multi-gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ function deNowifyCurrentPieces(
173173
const objMetadata = obj.metaData as Partial<PieceTimelineMetadata> | undefined
174174
if (objMetadata?.isPieceTimeline && !Array.isArray(obj.enable) && obj.enable.start === 'now') {
175175
if (obj.inGroup === timingContext.currentPartGroup.id) {
176-
obj.enable = { start: nowInPart }
176+
obj.enable = { ...obj.enable, start: nowInPart }
177177
} else if (!obj.inGroup) {
178-
obj.enable = { start: targetNowTime }
178+
obj.enable = { ...obj.enable, start: targetNowTime }
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)