Bug 267350

Summary: [MSE] Reset extra memory cost inside removedFromMediaSource()
Product: WebKit Reporter: Enrique Ocaña <eocanha>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Enrique Ocaña
Reported 2024-01-10 10:40:30 PST
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
Attachments
Enrique Ocaña
Comment 1 2024-01-10 10:53:58 PST
EWS
Comment 2 2024-01-11 02:11:42 PST
Committed 272908@main (4fa545a246f2): <https://commits.webkit.org/272908@main> Reviewed commits have been landed. Closing PR #22602 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-01-11 02:12:15 PST
Note You need to log in before you can comment on or make changes to this bug.