Merge pull request #973 from PepperDash/hotfix/multiple-display-routing-support

Fix interface type check for routing
This commit is contained in:
Neil Dorin 2022-08-01 12:34:16 -06:00 committed by GitHub
commit 3033322212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -708,11 +708,12 @@ namespace PepperDash.Essentials
IRoutingSink dest = null;
if (route.DestinationKey.Equals("$defaultaudio", StringComparison.OrdinalIgnoreCase))
dest = DefaultAudioDevice as IRoutingSinkNoSwitching;
dest = DefaultAudioDevice as IRoutingSink;
else if (route.DestinationKey.Equals("$defaultDisplay", StringComparison.OrdinalIgnoreCase))
dest = DefaultDisplay;
else
dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSinkNoSwitching;
dest = DeviceManager.GetDeviceForKey(route.DestinationKey) as IRoutingSink;
if (dest == null)
{