Title: [288441] trunk/Source/WebCore
Revision
288441
Author
[email protected]
Date
2022-01-24 08:03:50 -0800 (Mon, 24 Jan 2022)

Log Message

AVAudioSessionCaptureDeviceManager is not always computing the right default input device
https://bugs.webkit.org/show_bug.cgi?id=235362
<rdar://87707090>

Addressing post commit comments.

Reviewed by Eric Carlson and Geoff Garen.

* platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:
Fixed the release logging.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288440 => 288441)


--- trunk/Source/WebCore/ChangeLog	2022-01-24 16:02:11 UTC (rev 288440)
+++ trunk/Source/WebCore/ChangeLog	2022-01-24 16:03:50 UTC (rev 288441)
@@ -1,3 +1,16 @@
+2022-01-24  Youenn Fablet  <[email protected]>
+
+        AVAudioSessionCaptureDeviceManager is not always computing the right default input device
+        https://bugs.webkit.org/show_bug.cgi?id=235362
+        <rdar://87707090>
+
+        Addressing post commit comments.
+
+        Reviewed by Eric Carlson and Geoff Garen.
+
+        * platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:
+        Fixed the release logging.
+
 2022-01-24  Antoine Quint  <[email protected]>
 
         [Model] Add testing coverage for camera API

Modified: trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm (288440 => 288441)


--- trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm	2022-01-24 16:02:11 UTC (rev 288440)
+++ trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm	2022-01-24 16:03:50 UTC (rev 288441)
@@ -237,12 +237,12 @@
 Vector<AVAudioSessionCaptureDevice> AVAudioSessionCaptureDeviceManager::retrieveAudioSessionCaptureDevices() const
 {
     auto *defaultInput = [m_audioSession currentRoute].inputs.firstObject;
-    if (!defaultInput)
+    if (!defaultInput) {
+        RELEASE_LOG_INFO(WebRTC, "AVAudioSessionCaptureDeviceManager using previous default input");
         defaultInput = m_lastDefaultMicrophone.get();
-    else {
-        RELEASE_LOG_INFO(WebRTC, "AVAudioSessionCaptureDeviceManager using previous default input");
+    } else
         m_lastDefaultMicrophone = defaultInput;
-    }
+
     auto availableInputs = [m_audioSession availableInputs];
 
     Vector<AVAudioSessionCaptureDevice> newAudioDevices;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to