Skip to content

Commit

Permalink
fix: do not remove unknown vmix sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Aug 31, 2021
1 parent 91cf76a commit c6a262b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/timeline-state-resolver/src/devices/vmixAPI.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EventEmitter } from 'eventemitter3'
import * as request from 'request'
import * as xml from 'xml-js'
import { VMixOptions, VMixCommand, VMixTransitionType, VMixInputType } from 'timeline-state-resolver-types'
import { VMixOptions, VMixCommand, VMixTransitionType } from 'timeline-state-resolver-types'
import { VMixState, VMixInput, VMixMix } from './vmix'
import * as _ from 'underscore'

Expand Down Expand Up @@ -187,9 +187,7 @@ export class VMix extends EventEmitter<VMixEvents> {
edition: xmlState['vmix']['edition']['_text'],
inputs: _.indexBy(
(xmlState['vmix']['inputs']['input'] as Array<any>).map((input): VMixInput => {
if (!(input['_attributes']['type'] in VMixInputType)) {
fixedInputsCount++
}
fixedInputsCount++
return {
number: Number(input['_attributes']['number']),
type: input['_attributes']['type'],
Expand Down

0 comments on commit c6a262b

Please sign in to comment.