Closed
Bug 1132369
Opened 11 years ago
Closed 10 years ago
DecodeMetadata function will be interrupted by dormant.
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bechen, Assigned: bechen)
Details
Attachments
(1 file)
|
1.12 KB,
patch
|
Details | Diff | Splinter Review |
Fork from bug 1129376 comment 2. Attachment 8562627 [details] [diff].
It's a timing/threading issue between mainthread and decodethread.
https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaDecoderStateMachine.cpp#2169
Then the document's activity change
https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaDecoderStateMachine.cpp#1456
At DecodeMetadata() function, decodethread release the monitor then call mReader->Readmatadata, at the same time on mainthread, MDSM receive "EnterDormant" and "LeaveDormant" cause the state transits to DECODER_STATE_DECODING_NONE. Then back to decoderthread it fails to enter waiting state.
https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaDecoderStateMachine.cpp#2174
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bechen
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•