From 4d0e3b194340a8a8a27c0e478e95c2b847d1a5b8 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 20 Mar 2024 10:50:23 -0500 Subject: [PATCH] fix: create sfot codec Routing collections --- .../SoftCodec/GenericSoftCodec.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PepperDash.Essentials.Devices.Common/SoftCodec/GenericSoftCodec.cs b/src/PepperDash.Essentials.Devices.Common/SoftCodec/GenericSoftCodec.cs index d7952ff7..f6661256 100644 --- a/src/PepperDash.Essentials.Devices.Common/SoftCodec/GenericSoftCodec.cs +++ b/src/PepperDash.Essentials.Devices.Common/SoftCodec/GenericSoftCodec.cs @@ -14,6 +14,9 @@ namespace PepperDash.Essentials.Devices.Common.SoftCodec { public GenericSoftCodec(string key, string name, GenericSoftCodecProperties props) : base(key, name) { + InputPorts = new RoutingPortCollection(); + OutputPorts = new RoutingPortCollection(); + for(var i = 1; i <= props.OutputCount; i++) { var outputPort = new RoutingOutputPort($"{Key}-output{i}", eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.Hdmi, null, this); @@ -41,9 +44,9 @@ namespace PepperDash.Essentials.Devices.Common.SoftCodec } } - public RoutingPortCollection InputPorts => throw new NotImplementedException(); + public RoutingPortCollection InputPorts { get; private set; } - public RoutingPortCollection OutputPorts => throw new NotImplementedException(); + public RoutingPortCollection OutputPorts { get; private set; } } public class GenericSoftCodecProperties