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

Changeset 286965 in webkit


Ignore:
Timestamp:
Dec 13, 2021, 12:12:23 PM (5 years ago)
Author:
youenn@apple.com
Message:

Fix buggy assert in CoreAudioSharedUnit::setupAudioUnit
https://bugs.webkit.org/show_bug.cgi?id=234151

Reviewed by Eric Carlson.

Add the source as a client to the unit before reconfiguring the unit,
this makes the ASSERT(hasClients()) actually valid.
Manually tested.

  • platform/mediastream/mac/CoreAudioCaptureSource.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r286962 r286965  
     12021-12-13  Youenn Fablet  <youenn@apple.com>
     2
     3        Fix buggy assert in CoreAudioSharedUnit::setupAudioUnit
     4        https://bugs.webkit.org/show_bug.cgi?id=234151
     5
     6        Reviewed by Eric Carlson.
     7
     8        Add the source as a client to the unit before reconfiguring the unit,
     9        this makes the ASSERT(hasClients()) actually valid.
     10        Manually tested.
     11
     12        * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     13
    1142021-12-13  Nikolas Zimmermann  <nzimmermann@igalia.com>
    215
  • trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r286650 r286965  
    763763    unit.setVolume(volume());
    764764
     765    unit.addClient(*this);
     766
    765767    if (shouldReconfigure)
    766768        unit.reconfigure();
    767 
    768     unit.addClient(*this);
    769769}
    770770
Note: See TracChangeset for help on using the changeset viewer.