Skip to content

Commit 8ee3589

Browse files
committed
fix: take into account a situation when .duration is 0. resolves #1414
1 parent 172d7c0 commit 8ee3589

File tree

1 file changed

+1
-1
lines changed
  • packages/job-worker/src/playout/timeline

1 file changed

+1
-1
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

107107
// If the part has an end time, we can consider post-roll
108108
if (partHasEndTime && partTimings.toPartPostroll) {
109-
if (!pieceEnable.duration) {
109+
if (pieceEnable.duration === undefined) {
110110
// make sure that the control object is shortened correctly
111111
pieceEnable.end = `#${partGroupId} - ${partTimings.toPartPostroll}`
112112
}

0 commit comments

Comments
 (0)