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

Changeset 293728 in webkit


Ignore:
Timestamp:
May 3, 2022, 9:09:40 AM (4 years ago)
Author:
youenn@apple.com
Message:

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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r293726 r293728  
     12022-05-03  Youenn Fablet  <youenn@apple.com>
     2
     3        Fix buggy assert in CoreAudioSharedUnit::configureSpeakerProc
     4        https://bugs.webkit.org/show_bug.cgi?id=240001
     5
     6        Reviewed by Eric Carlson.
     7
     8        Manually tested.
     9
     10        * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     11        Initialize the sampleRate field before using it.
     12
    1132022-05-03  Youenn Fablet  <youenn@apple.com>
    214
  • trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r293664 r293728  
    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.