From cd6a81497894f7de78e8e9eba820d4f7d8b9988f Mon Sep 17 00:00:00 2001 From: Nils Ohlmeier Date: Thu, 28 Oct 2021 16:52:22 -0700 Subject: [PATCH] addressed review comments --- modules/devices/mediaDeviceHelper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/devices/mediaDeviceHelper.js b/modules/devices/mediaDeviceHelper.js index d14115787..4bea5654a 100644 --- a/modules/devices/mediaDeviceHelper.js +++ b/modules/devices/mediaDeviceHelper.js @@ -80,7 +80,7 @@ function getNewAudioInputDevice(newDevices, localAudio, newLabel) { return availableAudioInputDevices[0].deviceId; } } else if (selectedAudioInputDevice - && selectedAudioInputDeviceId !== localAudio.getDeviceId()) { + && selectedAudioInputDeviceId !== localAudioDeviceId) { if (newLabel) { // If a Firefox user with manual permission prompt chose a different @@ -132,7 +132,7 @@ function getNewVideoInputDevice(newDevices, localVideo, newLabel) { return availableVideoInputDevices[0].deviceId; } } else if (selectedVideoInputDevice - && selectedVideoInputDeviceId !== localVideo.getDeviceId()) { + && selectedVideoInputDeviceId !== localVideoDeviceId) { if (newLabel) { // If a Firefox user with manual permission prompt chose a different