Skip to content

Commit

Permalink
fix: use correct class for generic sink factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welker committed Sep 26, 2024
1 parent d0dbe98 commit 82ebf45
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/PepperDash.Essentials.Devices.Common/Generic/GenericSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
using Serilog.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PepperDash.Essentials.Devices.Common.Generic
{
Expand All @@ -16,10 +13,9 @@ public GenericSink(string key, string name) : base(key, name)
{
InputPorts = new RoutingPortCollection<RoutingInputPort>();

var inputPort = new RoutingInputPort($"{Key}-{RoutingPortNames.AnyVideoIn}", eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.Hdmi, null, this);
var inputPort = new RoutingInputPort(RoutingPortNames.AnyVideoIn, eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.Hdmi, null, this);

InputPorts.Add(inputPort);

}

public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
Expand Down Expand Up @@ -57,8 +53,8 @@ public GenericSinkFactory()

public override EssentialsDevice BuildDevice(DeviceConfig dc)
{
Debug.LogMessage(LogEventLevel.Debug, "Factory Attempting to create new Generic Source Device");
return new GenericSource(dc.Key, dc.Name);
Debug.LogMessage(LogEventLevel.Debug, "Factory Attempting to create new Generic Sink Device");
return new GenericSink(dc.Key, dc.Name);
}
}
}

0 comments on commit 82ebf45

Please sign in to comment.