Closed
Bug 928765
Opened 10 years ago
Closed 10 years ago
Create MediaDecoderReader::GetBuffered() base implementation that estimates buffered ranges
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: cpearce, Assigned: cpearce)
Details
Attachments
(1 file)
11.20 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
Every MediaDecoderReader backend that has to estimate the buffered ranges using GetEstimatedBufferedTimeRanges() ends up reimplementing the same stub to call GetEstimatedBufferedTimeRanges(). We can instead implement this stub in MediaDecoderReader::GetBuffered(). Backends that can make a more accurate buffered ranges calculation override GetBuffered() as usual, and those that can't don't need to re-implement the code that calls GetEstimatedBufferedTimeRanges().
Assignee | ||
Comment 1•10 years ago
|
||
Patch. The only behaviour change here is in MediaPluginReader::GetBuffered(), where we use the duration as per the MediaDecoder rather than as per the plugin, but I think that that's not actually a behaviour change, since the decoder should have received the duration from the plugin anyway?
Attachment #819509 -
Flags: review?(chris.double)
Updated•10 years ago
|
Attachment #819509 -
Flags: review?(chris.double) → review+
Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/23c23b472a4f
Comment 3•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/23c23b472a4f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in
before you can comment on or make changes to this bug.
Description
•