Closed Bug 1132369 Opened 11 years ago Closed 10 years ago

DecodeMetadata function will be interrupted by dormant.

Categories

(Core :: Audio/Video, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bechen, Assigned: bechen)

Details

Attachments

(1 file)

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: nobody → bechen
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.

Attachment

General

Created:
Updated:
Size: