Skip to content

Commit

Permalink
fix: atem supersource border properties SOFIE-3307
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 14, 2024
1 parent db19ee3 commit 071869b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,14 @@ export class AtemDevice extends DeviceWithState<DeviceState, DeviceOptionsAtemIn
case MappingAtemType.SuperSourceProperties:
if (content.type === TimelineContentTypeAtem.SSRCPROPS) {
const ssrc = AtemStateUtil.getSuperSource(deviceState, mapping.options.index)

// Future: These deepExtends are adding a load of noise to the library diffing, but it works for now

if (!ssrc.properties) ssrc.properties = { ...StateDefault.Video.SuperSourceProperties }
if (ssrc) deepExtend(ssrc.properties, content.ssrcProps)

if (!ssrc.border) ssrc.border = { ...StateDefault.Video.SuperSourceBorder }
if (ssrc) deepExtend(ssrc.border, content.ssrcProps)
}
break
case MappingAtemType.Auxilliary:
Expand Down

0 comments on commit 071869b

Please sign in to comment.