[webkit-changes] [WebKit/WebKit] 6d7afc: [MSE] Ensure we are not removing the current time ...
Xabier Rodríguez
noreply at github.com
Tue Nov 22 08:32:37 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6d7afcf0850ffbb4b6f06f3063ca131fbbf281cd
https://github.com/WebKit/WebKit/commit/6d7afcf0850ffbb4b6f06f3063ca131fbbf281cd
Author: Xabier Rodriguez-Calvar <calvaris at igalia.com>
Date: 2022-11-22 (Tue, 22 Nov 2022)
Changed paths:
A LayoutTests/media/media-source/media-source-append-buffer-full-evict-prior-to-end-expected.txt
A LayoutTests/media/media-source/media-source-append-buffer-full-evict-prior-to-end.html
M Source/WebCore/platform/graphics/SourceBufferPrivate.cpp
M Source/WebCore/platform/graphics/SourceBufferPrivate.h
Log Message:
-----------
[MSE] Ensure we are not removing the current time during automatic eviction
https://bugs.webkit.org/show_bug.cgi?id=247052
Reviewed by Alicia Boya Garcia.
In certain cases, depending on the sync frame positions, we could end up removing the current time, which would lead to
playback stopping. Now we ensure that the previous sync frame to current time is taking into account when calculating
the maximumRangeEnd.
* LayoutTests/media/media-source/media-source-append-buffer-full-evict-prior-to-end-expected.txt: Added.
* LayoutTests/media/media-source/media-source-append-buffer-full-evict-prior-to-end.html: Added.
* Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:
(WebCore::SourceBufferPrivate::findPreviousSyncSamplePresentationTime):
(WebCore::SourceBufferPrivate::evictCodedFrames):
* Source/WebCore/platform/graphics/SourceBufferPrivate.h:
Canonical link: https://commits.webkit.org/256939@main
More information about the webkit-changes
mailing list