Title: [269259] branches/safari-610-branch/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm
- Revision
- 269259
- Author
- [email protected]
- Date
- 2020-11-02 11:20:24 -0800 (Mon, 02 Nov 2020)
Log Message
Apply patch. rdar://problem/70952670
Cherry-pick part of r268577 to branch.
Modified Paths
Diff
Modified: branches/safari-610-branch/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm (269258 => 269259)
--- branches/safari-610-branch/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm 2020-11-02 19:20:21 UTC (rev 269258)
+++ branches/safari-610-branch/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm 2020-11-02 19:20:24 UTC (rev 269259)
@@ -262,9 +262,8 @@
if (timeStamp >= endFrame)
m_endFrameWhenNotEnoughData = endFrame;
} else {
- // We are too close from endFrame, let's back up a little bit.
- uint64_t framesAvailable = endFrame - timeStamp;
- m_outputSampleOffset -= sampleCount - framesAvailable;
+ // We are too close from endFrame, let's wait for more data to be pushed.
+ m_outputSampleOffset -= sampleCount;
dispatch_async(dispatch_get_main_queue(), [logIdentifier = LOGIDENTIFIER, outputSampleOffset = m_outputSampleOffset, this, protectedThis = makeRefPtr(*this)] {
ALWAYS_LOG(logIdentifier, "updating offset to ", outputSampleOffset);
});
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes