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

Changeset 249238 in webkit


Ignore:
Timestamp:
Aug 28, 2019, 10:57:06 PM (7 years ago)
Author:
Kocsen Chung
Message:

Cherry-pick r249154. rdar://problem/54775050

Disabled devices should not be taken into account when searching for a capture device
https://bugs.webkit.org/show_bug.cgi?id=201183
<rdar://problem/54353440>

Reviewed by Jer Noble.

Manually tested.

  • platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp: (WebCore::CoreAudioCaptureDeviceManager::coreAudioDeviceWithUID): We currently keep a list of devices, some of which might be disabled. We should not take into account disabled devices, only enabled devices when doing this search.
  • platform/mediastream/mac/CoreAudioCaptureSource.cpp: (WebCore::CoreAudioSharedUnit::setupAudioUnit): Improve logging.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249154 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608-branch/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608-branch/Source/WebCore/ChangeLog

    r249168 r249238  
     12019-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
    1442019-08-27  Alan Coon  <alancoon@apple.com>
    245
  • branches/safari-608-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureDeviceManager.cpp

    r246215 r249238  
    155155{
    156156    for (auto& device : coreAudioCaptureDevices()) {
    157         if (device.persistentId() == deviceID)
     157        if (device.persistentId() == deviceID && device.enabled())
    158158            return device;
    159159    }
  • branches/safari-608-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r247381 r249238  
    340340    err = AudioUnitSetProperty(m_ioUnit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, inputBus, &m_captureDeviceID, sizeof(m_captureDeviceID));
    341341    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);
    343343        return err;
    344344    }
Note: See TracChangeset for help on using the changeset viewer.