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 <[email protected]>
  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 <[email protected]>

* Source/WebCore/Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::removedFromMediaSource): Reset m_extraMemoryCost.

Canonical link: https://commits.webkit.org/272908@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to