Closed
Bug 1108917
Opened 10 years ago
Closed 10 years ago
Allow eviction of entire decoders that are ahead of the current play position
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
2.86 KB,
patch
|
ajones
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
2.32 KB,
patch
|
ajones
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Currently we only allow eviction of data that is behind the current play position.
It's possible to accumulate considerable amounts of data ahead of the current position (usually by seeking backwards in small increments), which won't be evicted by the current code.
Seeking backwards will results in new decoders for each seek, so we can evict entire decoders and prevent this from using excessive amounts of memory.
Assignee | ||
Comment 1•10 years ago
|
||
We prefer to evict data as far away from the current playback position as possible, and this will help with that (in some cases).
Attachment #8533510 -
Flags: review?(ajones)
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8533511 -
Flags: review?(ajones)
Comment 3•10 years ago
|
||
Comment on attachment 8533510 [details] [diff] [review]
Part 1: Attempt to evict data from decoders in start-time order
Review of attachment 8533510 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/media/mediasource/TrackBuffer.cpp
@@ +239,5 @@
> + decoders[i] != mCurrentDecoder) {
> + RemoveDecoder(decoders[i]);
> + }
> + if (toEvict <= 0 ||
> + decoders[i] == mCurrentDecoder) {
nit: line break
Attachment #8533510 -
Flags: review?(ajones) → review+
Updated•10 years ago
|
Attachment #8533511 -
Flags: review?(ajones) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/b2f813477747 for mochitest-2 bustage:
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=4520195&repo=mozilla-inbound
Flags: needinfo?(matt.woodrow)
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0f9b7c71ba3d
https://hg.mozilla.org/mozilla-central/rev/99d8d92a319b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(matt.woodrow)
Comment 9•10 years ago
|
||
Comment on attachment 8533511 [details] [diff] [review]
Part 2: Allow eviction of decoders that are ahead of the current playback position
Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Less consistent testing, sites more likely to serve Flash video.
[Describe test coverage new/current, TBPL]: Landed on m-c.
[Risks and why]: Low, MSE-specific code.
[String/UUID change made/needed]: None.
Attachment #8533511 -
Flags: approval-mozilla-aurora?
Comment 10•10 years ago
|
||
Comment on attachment 8533510 [details] [diff] [review]
Part 1: Attempt to evict data from decoders in start-time order
Same request applies to all patches on this bug.
Attachment #8533510 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
status-firefox36:
--- → affected
status-firefox37:
--- → fixed
Updated•10 years ago
|
Attachment #8533510 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8533511 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 11•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•