Skip to content

Commit

Permalink
fix: clear pieces with fixed duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Sep 26, 2024
1 parent a1966e9 commit 51cc430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/job-worker/src/playout/adlibUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ export function innerStopPieces(
if (!filter(pieceInstance)) continue

// Check if piece has started yet
if (!resolvedPieceInstance.resolvedStart || resolvedPieceInstance.resolvedStart > relativeStopAt) continue
if (resolvedPieceInstance.resolvedStart == undefined || resolvedPieceInstance.resolvedStart > relativeStopAt)
continue

// If there end time of the piece is already known, make sure it is in the future
if (pieceInstance.plannedStoppedPlayback && pieceInstance.plannedStoppedPlayback <= stopAt) continue
Expand Down

0 comments on commit 51cc430

Please sign in to comment.