RESOLVED FIXED 296059
[MSE][GStreamer] update maximum buffer size after receiving first init segment
https://bugs.webkit.org/show_bug.cgi?id=296059
Summary [MSE][GStreamer] update maximum buffer size after receiving first init segment
Enrique Ocaña
Reported 2025-07-16 08:09:42 PDT
The current SourceBuffer::sourceBufferPrivateDidReceiveInitializationSegment() code only calls SourceBufferPrivate::setMaximumBufferSize() on new init segments when the segment has (at least) a video track. Maximum buffer size is managed with high granularity in WPE by using the MSE_MAX_BUFFER_SIZE environment variable. For that reason, that call must happen independently of the kind of tracks present (at least on the WPE platform). This will ensure that the proper frame eviction code in SourceBufferPrivate::setMaximumBufferSize() is called in all cases. See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1534
Attachments
Enrique Ocaña
Comment 1 2025-07-16 08:21:38 PDT
EWS
Comment 2 2025-07-21 05:25:21 PDT
Committed 297674@main (da13f3fd899e): <https://commits.webkit.org/297674@main> Reviewed commits have been landed. Closing PR #48121 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-07-21 05:26:13 PDT
Note You need to log in before you can comment on or make changes to this bug.