diff --git a/SoundSwitch.Audio.Manager/AudioSwitcher.cs b/SoundSwitch.Audio.Manager/AudioSwitcher.cs index 5d506f9fab..a8a95e138b 100644 --- a/SoundSwitch.Audio.Manager/AudioSwitcher.cs +++ b/SoundSwitch.Audio.Manager/AudioSwitcher.cs @@ -332,8 +332,9 @@ public IEnumerable GetAudioEndpoints(EDataFlow flow, EDeviceStat Trace.TraceError("Couldn't get device info: {0}", e); return null; } - }).Where(device => device != null) - .Where(device => string.IsNullOrEmpty(device?.Name)) + }) + .Where(device => device != null) + .Where(device => !string.IsNullOrEmpty(device?.Name)) .Cast().ToArray(); });