Bug 256092
Summary: | [MSE] Evict content earlier to source buffer reduce memory usage. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | jer.noble, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Jean-Yves Avenard [:jya]
We only starts to evict content when the source buffer size reach a given threshold.
However the source buffer size is calculated by looking at the size of each media sample contained in the track buffers.
But this only account for the media content itself.
A MediaSampleAVFObjC wraps a CMSampleBuffer, which itself is over 590 bytes.
So regardless of the size of the actual media segment, we store at least 590 bytes.
We should account for the size of the sample container itself, which would make the source buffer more accurately determine when eviction should occur and do so earlier.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/108658434>
Jer Noble
Dup of bug # 256113
*** This bug has been marked as a duplicate of bug 256113 ***