⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283628 in webkit


Ignore:
Timestamp:
Oct 6, 2021, 9:56:44 AM (5 years ago)
Author:
youenn@apple.com
Message:

CoreAudioSharedUnit should not clear its persistentID when device capture changes
https://bugs.webkit.org/show_bug.cgi?id=231280

Reviewed by Eric Carlson.

Manually tested.

  • platform/mediastream/mac/CoreAudioCaptureSource.cpp:

(WebCore::CoreAudioSharedUnit::cleanupAudioUnit):
Partially reverting https://commits.webkit.org/r280702 which was clearing m_persistentID in cleanUpAudioUnit.
The issue is that when unit is capturing and is changing capturing device, it will set m_persistentID then cleanUpAudioUnit
as part of its reconfiguration. This was making m_persistentID being empty.
When starting to capture, we often receive a notification of changed devices and we would check whether the new devices set
contains m_persistentID. If not (which is the case since m_persistentID is empty), we would fail the capture.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r283626 r283628  
     12021-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
    1182021-10-06  Chris Lord  <clord@igalia.com>
    219
  • trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r283611 r283628  
    472472    m_microphoneSampleBuffer = nullptr;
    473473    m_speakerSampleBuffer = nullptr;
    474     m_persistentID = emptyString();
    475474#if !LOG_DISABLED
    476475    m_ioUnitName = emptyString();
Note: See TracChangeset for help on using the changeset viewer.