File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/job-worker/src/playout/lookahead Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ function generatePartInstanceLookaheads(
115115) : { objs : LookaheadTimelineObject [ ] ; partInfo : PartAndPieces } {
116116 const partInfo : PartAndPieces = {
117117 part : partInstanceInfo . part . part ,
118- usesInTransition : partInstanceInfo . calculatedTimings ?. inTransitionStart ? true : false ,
118+ usesInTransition : partInstanceInfo . calculatedTimings ?. inTransitionStart !== null ? true : false ,
119119 pieces : sortPieceInstancesByStart ( partInstanceInfo . allPieces , partInstanceInfo . nowInPart ) ,
120120 }
121121 if ( nextTimeOffset ) {
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export function findLookaheadObjectsForPart(
152152
153153 const res : Array < LookaheadTimelineObject > = [ ]
154154 allObjs . map ( ( obj ) => {
155- const piece = partInfo . pieces . find ( ( piece ) => unprotectString ( piece . _id ) === obj . pieceInstanceId )
155+ const piece = partInfo . pieces . find ( ( piece ) => unprotectString ( piece . _id ) === getBestPieceInstanceId ( piece ) )
156156 if ( ! piece ) return
157157
158158 // If there is a transition and this piece is abs0, it is assumed to be the primary piece and so does not need lookahead
You can’t perform that action at this time.
0 commit comments