Skip to content

Commit

Permalink
fix: casparCGMaster protocol should not be able to be undefined (a te…
Browse files Browse the repository at this point in the history
…mplate is always loaded)
  • Loading branch information
olzzon authored and olzzon committed Mar 19, 2020
1 parent 39682e5 commit 477549e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions server/constants/MixerProtocolPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob
yamahaQlCl: YamahaQLCL,
sslSystemT: SSLSystemT,
studerVistaMaster: StuderVistaMaster,
}, CasparCGMaster !== undefined ? {
}, {
casparCGMaster: CasparCGMaster
} : {});
});
/*
*/

Expand Down
6 changes: 1 addition & 5 deletions server/constants/mixerProtocols/casparCGMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ let geometry: ICasparCGMixerGeometryFile = {
}
}

let CasparCGMasterObject: ICasparCGMixerGeometry | undefined = undefined

if (geometry) {
CasparCGMasterObject = {
let CasparCGMasterObject: ICasparCGMixerGeometry = {
protocol: 'CasparCG',
label: `CasparCG Audio Mixer`,
mode: "master",
Expand Down Expand Up @@ -159,6 +156,5 @@ if (geometry) {
},
}]
}
}

export const CasparCGMaster = CasparCGMasterObject

0 comments on commit 477549e

Please sign in to comment.