mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-06 00:05:05 +00:00
Adds case to handle misisng eventId for HdcpSupportOffEventId
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user