Changeset 283628 in webkit
- Timestamp:
- Oct 6, 2021, 9:56:44 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/mediastream/mac/CoreAudioCaptureSource.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r283626 r283628 1 2021-10-06 Youenn Fablet <youenn@apple.com> 2 3 CoreAudioSharedUnit should not clear its persistentID when device capture changes 4 https://bugs.webkit.org/show_bug.cgi?id=231280 5 6 Reviewed by Eric Carlson. 7 8 Manually tested. 9 10 * platform/mediastream/mac/CoreAudioCaptureSource.cpp: 11 (WebCore::CoreAudioSharedUnit::cleanupAudioUnit): 12 Partially reverting https://commits.webkit.org/r280702 which was clearing m_persistentID in cleanUpAudioUnit. 13 The issue is that when unit is capturing and is changing capturing device, it will set m_persistentID then cleanUpAudioUnit 14 as part of its reconfiguration. This was making m_persistentID being empty. 15 When starting to capture, we often receive a notification of changed devices and we would check whether the new devices set 16 contains m_persistentID. If not (which is the case since m_persistentID is empty), we would fail the capture. 17 1 18 2021-10-06 Chris Lord <clord@igalia.com> 2 19 -
trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp
r283611 r283628 472 472 m_microphoneSampleBuffer = nullptr; 473 473 m_speakerSampleBuffer = nullptr; 474 m_persistentID = emptyString();475 474 #if !LOG_DISABLED 476 475 m_ioUnitName = emptyString();
Note:
See TracChangeset
for help on using the changeset viewer.