File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
packages/job-worker/src/playout/timings Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -176,26 +176,26 @@ export function reportPartInstanceHasStarted(
176176 partInstance : PlayoutPartInstanceModel ,
177177 timestamp : Time
178178) : void {
179- if ( partInstance ) {
180- const timestampUpdated = partInstance . setReportedStartedPlayback ( timestamp )
181- if ( timestamp && ! playoutModel . isMultiGatewayMode ) {
179+ const timestampUpdated = partInstance . setReportedStartedPlayback ( timestamp )
180+
181+ if ( ! playoutModel . isMultiGatewayMode ) {
182+ if ( timestamp ) {
182183 partInstance . setPlannedStartedPlayback ( timestamp )
183184 }
184-
185185 const previousPartInstance = playoutModel . previousPartInstance
186- if ( timestampUpdated && ! playoutModel . isMultiGatewayMode && previousPartInstance ) {
186+ if ( timestampUpdated && previousPartInstance ) {
187187 // Ensure the plannedStoppedPlayback is set for the previous partinstance too
188188 previousPartInstance . setPlannedStoppedPlayback ( timestamp )
189189 }
190+ }
190191
191- // Update the playlist:
192- if ( ! partInstance . partInstance . part . untimed ) {
193- playoutModel . setRundownStartedPlayback ( partInstance . partInstance . rundownId , timestamp )
194- }
192+ // Update the playlist:
193+ if ( ! partInstance . partInstance . part . untimed ) {
194+ playoutModel . setRundownStartedPlayback ( partInstance . partInstance . rundownId , timestamp )
195+ }
195196
196- if ( timestampUpdated ) {
197- playoutModel . queuePartInstanceTimingEvent ( partInstance . partInstance . _id )
198- }
197+ if ( timestampUpdated ) {
198+ playoutModel . queuePartInstanceTimingEvent ( partInstance . partInstance . _id )
199199 }
200200}
201201
You can’t perform that action at this time.
0 commit comments