File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2602,13 +2602,18 @@ function SetUpATEMServer(sourceId) {
2602
2602
//console.log(state.info.capabilities);
2603
2603
}
2604
2604
else if ( ( path [ h ] . indexOf ( 'video.mixEffects' ) > - 1 ) || ( path [ h ] . indexOf ( 'video.ME' ) > - 1 ) || ( path [ h ] . indexOf ( 'video.downstreamKeyers' ) > - 1 ) ) {
2605
+ const pgmList = [ ] , prvList = [ ] ;
2606
+ const addUniqueInput = ( n , list ) => {
2607
+ const s = n . toString ( ) ;
2608
+ if ( ! list . includes ( s ) ) list . push ( s ) ;
2609
+ }
2605
2610
for ( let i = 0 ; i < state . video . mixEffects . length ; i ++ ) {
2606
2611
if ( source . data . me_onair . includes ( ( i + 1 ) . toString ( ) ) ) {
2607
- const pgmList = AtemListVisibleInputs ( "program" , state , i ) . map ( n => n . toString ( ) ) ;
2608
- const prvList = AtemListVisibleInputs ( "preview" , state , i ) . map ( n => n . toString ( ) ) ;
2609
- processATEMTally ( sourceId , pgmList , prvList ) ;
2612
+ AtemListVisibleInputs ( "program" , state , i ) . forEach ( n => addUniqueInput ( n , pgmList ) ) ;
2613
+ AtemListVisibleInputs ( "preview" , state , i ) . forEach ( n => addUniqueInput ( n , prvList ) ) ;
2610
2614
}
2611
2615
}
2616
+ processATEMTally ( sourceId , pgmList , prvList ) ;
2612
2617
}
2613
2618
}
2614
2619
} ) ;
You can’t perform that action at this time.
0 commit comments