Changeset 249238 in webkit
- Timestamp:
- Aug 28, 2019, 10:57:06 PM (7 years ago)
- Location:
- branches/safari-608-branch/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp (modified) (1 diff)
-
platform/mediastream/mac/CoreAudioCaptureSource.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608-branch/Source/WebCore/ChangeLog
r249168 r249238 1 2019-08-28 Kocsen Chung <kocsen_chung@apple.com> 2 3 Cherry-pick r249154. rdar://problem/54775050 4 5 Disabled devices should not be taken into account when searching for a capture device 6 https://bugs.webkit.org/show_bug.cgi?id=201183 7 <rdar://problem/54353440> 8 9 Reviewed by Jer Noble. 10 11 Manually tested. 12 13 * platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp: 14 (WebCore::CoreAudioCaptureDeviceManager::coreAudioDeviceWithUID): 15 We currently keep a list of devices, some of which might be disabled. 16 We should not take into account disabled devices, only enabled devices 17 when doing this search. 18 * platform/mediastream/mac/CoreAudioCaptureSource.cpp: 19 (WebCore::CoreAudioSharedUnit::setupAudioUnit): 20 Improve logging. 21 22 23 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249154 268f45cc-cd09-0410-ab3c-d52691b4dbfc 24 25 2019-08-27 Youenn Fablet <youenn@apple.com> 26 27 Disabled devices should not be taken into account when searching for a capture device 28 https://bugs.webkit.org/show_bug.cgi?id=201183 29 <rdar://problem/54353440> 30 31 Reviewed by Jer Noble. 32 33 Manually tested. 34 35 * platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp: 36 (WebCore::CoreAudioCaptureDeviceManager::coreAudioDeviceWithUID): 37 We currently keep a list of devices, some of which might be disabled. 38 We should not take into account disabled devices, only enabled devices 39 when doing this search. 40 * platform/mediastream/mac/CoreAudioCaptureSource.cpp: 41 (WebCore::CoreAudioSharedUnit::setupAudioUnit): 42 Improve logging. 43 1 44 2019-08-27 Alan Coon <alancoon@apple.com> 2 45 -
branches/safari-608-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp
r246215 r249238 155 155 { 156 156 for (auto& device : coreAudioCaptureDevices()) { 157 if (device.persistentId() == deviceID )157 if (device.persistentId() == deviceID && device.enabled()) 158 158 return device; 159 159 } -
branches/safari-608-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp
r247381 r249238 340 340 err = AudioUnitSetProperty(m_ioUnit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, inputBus, &m_captureDeviceID, sizeof(m_captureDeviceID)); 341 341 if (err) { 342 RELEASE_LOG_ERROR(WebRTC, "CoreAudioSharedUnit::setupAudioUnit(%p) unable to set vpio unit capture device ID , error %d (%.4s)", this, (int)err, (char*)&err);342 RELEASE_LOG_ERROR(WebRTC, "CoreAudioSharedUnit::setupAudioUnit(%p) unable to set vpio unit capture device ID %d, error %d (%.4s)", this, (int)m_captureDeviceID, (int)err, (char*)&err); 343 343 return err; 344 344 }
Note:
See TracChangeset
for help on using the changeset viewer.