Closed
Bug 1258627
Opened 9 years ago
Closed 9 years ago
Sometimes MediaDecoderStateMachine gets stuck in buffering state forever
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
cpearce
:
review+
lizzard
:
approval-mozilla-aurora+
lizzard
:
approval-mozilla-beta+
|
Details |
https://hg.mozilla.org/mozilla-central/file/4037eb98974db1b1e0b5012c8a7f3a36428eaa11/dom/media/MediaDecoderStateMachine.cpp#l835
Consider the following situation when #l835 is reached:
1. We stop decoding audio for we have ample samples in the audio queue.
2. Video decoding reaches the end for OnNotDecoded() is invoked with |aType == MediaData::VIDEO_DATA|
We will not schedule next cycle because decoding is not complete and get stuck in buffering state forever.
We should always schedule next cycle even if decode is not complete so we have a chance to leave buffering state.
Assignee | ||
Comment 1•9 years ago
|
||
Btw, this bug is manifested by bug 1242783 which somewhat changes the amount of audio buffering and decode timing. We need also uplift the fix to 46.
Assignee: nobody → jwwang
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/41711/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/41711/
Attachment #8733270 -
Flags: review?(cpearce)
Updated•9 years ago
|
Priority: -- → P2
Comment 4•9 years ago
|
||
Comment on attachment 8733270 [details]
MozReview Request: Bug 1258627 - always schedule next cycle so MDSM has a chance to leave buffering state. r=cpearce.
https://reviewboard.mozilla.org/r/41711/#review38373
Feels like a hacky fix, but at least it's a fix.
Attachment #8733270 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 5•9 years ago
|
||
Thanks!
Comment 7•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8733270 [details]
MozReview Request: Bug 1258627 - always schedule next cycle so MDSM has a chance to leave buffering state. r=cpearce.
Approval Request Comment
[Feature/regressing bug #]:unknown
[User impact if declined]:playback might get stuck forever when buffering
[Describe test coverage new/current, TreeHerder]:TreeHerder
[Risks and why]: very low for the change is very simple
[String/UUID change made/needed]:none
Flags: needinfo?(jwwang)
Attachment #8733270 -
Flags: approval-mozilla-beta?
Attachment #8733270 -
Flags: approval-mozilla-aurora?
Comment 9•9 years ago
|
||
Comment on attachment 8733270 [details]
MozReview Request: Bug 1258627 - always schedule next cycle so MDSM has a chance to leave buffering state. r=cpearce.
We don't want people's videos to be stuck, let's try uplift to beta 5.
Attachment #8733270 -
Flags: approval-mozilla-beta?
Attachment #8733270 -
Flags: approval-mozilla-beta+
Attachment #8733270 -
Flags: approval-mozilla-aurora?
Attachment #8733270 -
Flags: approval-mozilla-aurora+
Comment 10•9 years ago
|
||
status-firefox47:
--- → fixed
Comment 11•9 years ago
|
||
bugherder uplift |
status-firefox46:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•