Skip to content

Commit

Permalink
fix: atem supersource border properties SOFIE-3307 (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Aug 15, 2024
1 parent 9ab60aa commit 27213b0
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 27213b0

Please sign in to comment.