Skip to content

Commit d695d2d

Browse files
committed
fix: getting all device that have name
1 parent 0d31968 commit d695d2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SoundSwitch.Audio.Manager/AudioSwitcher.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ public IEnumerable<DeviceFullInfo> GetAudioEndpoints(EDataFlow flow, EDeviceStat
332332
Trace.TraceError("Couldn't get device info: {0}", e);
333333
return null;
334334
}
335-
}).Where(device => device != null)
336-
.Where(device => string.IsNullOrEmpty(device?.Name))
335+
})
336+
.Where(device => device != null)
337+
.Where(device => !string.IsNullOrEmpty(device?.Name))
337338
.Cast<DeviceFullInfo>().ToArray();
338339
});
339340

0 commit comments

Comments
 (0)