Skip to content

Commit

Permalink
fix(CasparCG): Compatibility between Decklink and Route sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperstarkar committed Mar 25, 2020
1 parent a39edcb commit 4b3c63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/utils/mixerConnections/CasparCGConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ export class CasparCGConnection {
} else if (m[1] === 'channel' && m[6] === 'file' && m[7] === 'path') {
const index = this.mixerProtocol.sourceOptions.sources.findIndex(i => i.channel === parseInt(m[2], 10) && i.layer === parseInt(m[5]))
if (index >= 0) {
const value = typeof message.args[0] === 'string' ? message.args[0] : message.args[0].low
store.dispatch({
type: SET_PRIVATE,
channel: index,
tag: 'file_path',
value: message.args[0].low
value
})
}
}
Expand Down

0 comments on commit 4b3c63d

Please sign in to comment.