Commit da14ef5
committed
[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: #1264
This patch resets m_extraMemoryCost when the SourceBuffer is removed.
Original author: Andrzej Surdej <Andrzej_Surdej@comcast.com>
* Source/WebCore/Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::removedFromMediaSource): Reset m_extraMemoryCost.
Canonical link: https://commits.webkit.org/272908@main1 parent d7dbe70 commit da14ef5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
| |||
0 commit comments