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(
176
176
partInstance : PlayoutPartInstanceModel ,
177
177
timestamp : Time
178
178
) : 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 ) {
182
183
partInstance . setPlannedStartedPlayback ( timestamp )
183
184
}
184
-
185
185
const previousPartInstance = playoutModel . previousPartInstance
186
- if ( timestampUpdated && ! playoutModel . isMultiGatewayMode && previousPartInstance ) {
186
+ if ( timestampUpdated && previousPartInstance ) {
187
187
// Ensure the plannedStoppedPlayback is set for the previous partinstance too
188
188
previousPartInstance . setPlannedStoppedPlayback ( timestamp )
189
189
}
190
+ }
190
191
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
+ }
195
196
196
- if ( timestampUpdated ) {
197
- playoutModel . queuePartInstanceTimingEvent ( partInstance . partInstance . _id )
198
- }
197
+ if ( timestampUpdated ) {
198
+ playoutModel . queuePartInstanceTimingEvent ( partInstance . partInstance . _id )
199
199
}
200
200
}
201
201
You can’t perform that action at this time.
0 commit comments