Adds case to handle misisng eventId for HdcpSupportOffEventId

This commit is contained in:
Neil Dorin
2020-08-27 12:25:08 -06:00
parent e952f3d775
commit 9846d87a40

View File

@@ -198,6 +198,7 @@ namespace PepperDash.Essentials.DM
Chassis.DMInputChange += new DMInputEventHandler(Chassis_DMInputChange);
Chassis.DMSystemChange += new DMSystemEventHandler(Chassis_DMSystemChange);
Chassis.DMOutputChange += new DMOutputEventHandler(Chassis_DMOutputChange);
Chassis.BaseEvent += ChassisOnBaseEvent;
VideoOutputFeedbacks = new Dictionary<uint, IntFeedback>();
AudioOutputFeedbacks = new Dictionary<uint, IntFeedback>();
UsbOutputRoutedToFeebacks = new Dictionary<uint, IntFeedback>();
@@ -867,6 +868,25 @@ namespace PepperDash.Essentials.DM
Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
break;
}
case DMInputEventIds.HdcpSupportOffEventId:
{
Debug.Console(2, this, "DM Input {0} HdcpSupportOffEventId", args.Number);
if (InputCardHdcpStateFeedbacks[args.Number] != null)
InputCardHdcpStateFeedbacks[args.Number].FireUpdate();
else
Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
break;
}
// This case may be redundant as the case above should fire when HdcpSupport changes to on or off
//case DMInputEventIds.HdcpSupportOnEventId:
// {
// Debug.Console(2, this, "DM Input {0} HdcpSupportOnEventId", args.Number);
// if (InputCardHdcpStateFeedbacks[args.Number] != null)
// InputCardHdcpStateFeedbacks[args.Number].FireUpdate();
// else
// Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
// break;
// }
default:
{
Debug.Console(2, this, "DMInputChange fired for Input {0} with Unhandled EventId: {1}", args.Number, args.EventId);