Closed
Bug 1388665
Opened 8 years ago
Closed 8 years ago
Remove BufferingState::DispatchDecodeTasksIfNeeded()
Categories
(Core :: Audio/Video: Playback, enhancement, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(1 file)
The function is called in BufferingState::Step() [1] to dispatch decoding tasks when necessary. We should do the dispatching in Handle{Audio,Video}Decoded [2] for some checks won't be necessary and the logic can be simplified.
E.g. In HandleAudioDecoded() we are guaranteed to have:
1. mMaster->IsAudioDecoding() is true
2. mMaster->IsRequestingAudioData() is false
3. mMaster->IsWaitingAudioData() is false
[1] http://searchfox.org/mozilla-central/rev/0f16d437cce97733c6678d29982a6bcad49f817b/dom/media/MediaDecoderStateMachine.cpp#2594,2598
[2] http://searchfox.org/mozilla-central/rev/0f16d437cce97733c6678d29982a6bcad49f817b/dom/media/MediaDecoderStateMachine.cpp#1877,1885
| Assignee | ||
Updated•8 years ago
|
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Attachment #8895649 -
Flags: review?(kaku)
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8895649 [details]
Bug 1388665 - remove BufferingState::DispatchDecodeTasksIfNeeded().
https://reviewboard.mozilla.org/r/166908/#review172016
Attachment #8895649 -
Flags: review?(kaku) → review+
| Assignee | ||
Comment 3•8 years ago
|
||
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c879d5173d1
remove BufferingState::DispatchDecodeTasksIfNeeded(). r=kaku
Comment 5•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•