Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2c529b89097add1b320d3db123d7fa9ef8456329
https://github.com/WebKit/WebKit/commit/2c529b89097add1b320d3db123d7fa9ef8456329
Author: Fady Farag <[email protected]>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.cpp
Log Message:
-----------
MediaRecorder drops a frame whenever the writer input reports not ready
https://bugs.webkit.org/show_bug.cgi?id=321218
rdar://184271782
Reviewed by Darin Adler.
Previously, MediaRecorderPrivateWriter::writeFrames() removed the sample
from m_pendingFrames before calling writeFrame(). That caused the sample
to be destroyed instead of retried when writeFrame() returned NotReady,
contradicting the adjacent comment and discarding one frame. This removes
the sample from the deque if and only if writeFrame() returned Success,
which is the intended behavior.
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateWriter.cpp:
(WebCore::MediaRecorderPrivateWriter::writeFrames):
Canonical link: https://commits.webkit.org/318778@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications