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

Changeset 271477 in webkit


Ignore:
Timestamp:
Jan 13, 2021, 5:37:59 PM (6 years ago)
Author:
Chris Dumez
Message:

REGRESSION(r270961): Flipgrid can no longer capture video
https://bugs.webkit.org/show_bug.cgi?id=220609
<rdar://73168009>

Reviewed by Darin Adler.

Add back line in RemoteAudio::setStorage() that was initializing m_buffer and that was
dropped by mistake in the refactoring in r270961. This was causing
RemoteCaptureSampleManager::RemoteAudio::audioSamplesAvailable() to return early because
m_buffer was not initialized.

No new tests, unsure how to test this.

  • WebProcess/cocoa/RemoteCaptureSampleManager.cpp:

(WebKit::RemoteCaptureSampleManager::RemoteAudio::setStorage):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r271473 r271477  
     12021-01-13  Chris Dumez  <cdumez@apple.com>
     2
     3        REGRESSION(r270961): Flipgrid can no longer capture video
     4        https://bugs.webkit.org/show_bug.cgi?id=220609
     5        <rdar://73168009>
     6
     7        Reviewed by Darin Adler.
     8
     9        Add back line in RemoteAudio::setStorage() that was initializing m_buffer and that was
     10        dropped by mistake in the refactoring in r270961. This was causing
     11        RemoteCaptureSampleManager::RemoteAudio::audioSamplesAvailable() to return early because
     12        m_buffer was not initialized.
     13
     14        No new tests, unsure how to test this.
     15
     16        * WebProcess/cocoa/RemoteCaptureSampleManager.cpp:
     17        (WebKit::RemoteCaptureSampleManager::RemoteAudio::setStorage):
     18
    1192021-01-13  John Wilander  <wilander@apple.com>
    220
  • trunk/Source/WebKit/WebProcess/cocoa/RemoteCaptureSampleManager.cpp

    r271041 r271477  
    122122    m_description = description;
    123123    m_ringBuffer = makeUnique<CARingBuffer>(makeUniqueRef<ReadOnlySharedRingBufferStorage>(handle), description, numberOfFrames);
     124    m_buffer = makeUnique<WebAudioBufferList>(description, numberOfFrames);
    124125}
    125126
Note: See TracChangeset for help on using the changeset viewer.