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

Changeset 294839 in webkit


Ignore:
Timestamp:
May 25, 2022, 4:49:37 PM (4 years ago)
Author:
Alan Coon
Message:

Cherry-pick r293728. rdar://problem/92362769

Fix buggy assert in CoreAudioSharedUnit::configureSpeakerProc
​https://bugs.webkit.org/show_bug.cgi?id=240001

Reviewed by Eric Carlson.

Manually tested.

  • platform/mediastream/mac/CoreAudioCaptureSource.cpp: Initialize the sampleRate field before using it.

Canonical link: ​https://commits.webkit.org/250216@main
git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@293728 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613-branch/Source/WebCore
Files:
2 edited

Legend:

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

    r294838 r294839  
     12022-05-19  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r293728. rdar://problem/92362769
     4
     5    Fix buggy assert in CoreAudioSharedUnit::configureSpeakerProc
     6    https://bugs.webkit.org/show_bug.cgi?id=240001
     7   
     8    Reviewed by Eric Carlson.
     9   
     10    Manually tested.
     11   
     12    * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     13    Initialize the sampleRate field before using it.
     14   
     15    Canonical link: https://commits.webkit.org/250216@main
     16    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     17
     18    2022-05-03  Youenn Fablet  <youenn@apple.com>
     19
     20            Fix buggy assert in CoreAudioSharedUnit::configureSpeakerProc
     21            https://bugs.webkit.org/show_bug.cgi?id=240001
     22
     23            Reviewed by Eric Carlson.
     24
     25            Manually tested.
     26
     27            * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     28            Initialize the sampleRate field before using it.
     29
    1302022-05-19  Alan Coon  <alancoon@apple.com>
    231
  • branches/safari-613-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r294838 r294839  
    347347        Locker locker { m_speakerSamplesProducerLock };
    348348        if (m_speakerSamplesProducer) {
     349            speakerProcFormat = m_speakerSamplesProducer->format().streamDescription();
    349350            ASSERT(speakerProcFormat.mSampleRate == sampleRate);
    350             speakerProcFormat = m_speakerSamplesProducer->format().streamDescription();
    351351        } else {
    352352            err = PAL::AudioUnitGetProperty(m_ioUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, outputBus, &speakerProcFormat, &size);
Note: See TracChangeset for help on using the changeset viewer.