[webkit-changes] [WebKit/WebKit] 4fa545: [MSE] Reset extra memory cost inside removedFromMe...
Enrique Ocaña González
noreply at github.com
Thu Jan 11 02:11:51 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4fa545a246f2656f589c82517da3b66a79e129ba
https://github.com/WebKit/WebKit/commit/4fa545a246f2656f589c82517da3b66a79e129ba
Author: Enrique Ocaña González <eocanha at igalia.com>
Date: 2024-01-11 (Thu, 11 Jan 2024)
Changed paths:
M Source/WebCore/Modules/mediasource/SourceBuffer.cpp
Log Message:
-----------
[MSE] Reset extra memory cost inside removedFromMediaSource()
https://bugs.webkit.org/show_bug.cgi?id=267350
Reviewed by Xabier Rodriguez-Calvar.
When the SourceBuffer is removed from a MediaSource, its TrackBuffers are cleared (and so is
its data, which can take a good amount of memory), but the SourceBuffer still accounts for
the cost of its old data, as m_extraMemoryCost isn't reset to zero.
See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1264
This patch resets m_extraMemoryCost when the SourceBuffer is removed.
Original author: Andrzej Surdej <Andrzej_Surdej at comcast.com>
* Source/WebCore/Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::removedFromMediaSource): Reset m_extraMemoryCost.
Canonical link: https://commits.webkit.org/272908@main
More information about the webkit-changes
mailing list