Changeset 262843 in webkit


Ignore:
Timestamp:
Jun 10, 2020, 9:51:19 AM (5 years ago)
Author:
youenn@apple.com
Message:

BaseAudioSharedUnit does not need to restart its audio unit at resume time.
https://bugs.webkit.org/show_bug.cgi?id=213021

Reviewed by Eric Carlson.

Removing a case that should not happen, and was guarded by ASSERT.
Keeping ASSERT to make sure we do not break this assumption.

  • platform/mediastream/mac/BaseAudioSharedUnit.cpp:

(WebCore::BaseAudioSharedUnit::resume):
(WebCore::BaseAudioSharedUnit::suspend):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r262841 r262843  
     12020-06-10  Youenn Fablet  <youenn@apple.com>
     2
     3        BaseAudioSharedUnit does not need to restart its audio unit at resume time.
     4        https://bugs.webkit.org/show_bug.cgi?id=213021
     5
     6        Reviewed by Eric Carlson.
     7
     8        Removing a case that should not happen, and was guarded by ASSERT.
     9        Keeping ASSERT to make sure we do not break this assumption.
     10
     11        * platform/mediastream/mac/BaseAudioSharedUnit.cpp:
     12        (WebCore::BaseAudioSharedUnit::resume):
     13        (WebCore::BaseAudioSharedUnit::suspend):
     14
    1152020-06-10  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebCore/platform/mediastream/mac/BaseAudioSharedUnit.cpp

    r262798 r262843  
    178178
    179179    ASSERT(!m_producingCount);
    180     if (m_producingCount) {
    181         if (auto error = startUnit())
    182             return error;
    183     }
    184180
    185181    forEachClient([](auto& client) {
     
    202198        client.setMuted(true);
    203199    });
     200
     201    ASSERT(!m_producingCount);
    204202
    205203    return 0;
Note: See TracChangeset for help on using the changeset viewer.