Closed Bug 982032 Opened 9 years ago Closed 9 years ago
Can run COMPLETED state twice
I think we can sometimes run the COMPLETED state of MediaDecoderStateMachine twice. This happens when multiple decode tasks both call CheckIfDecodeComplete() (which they do at their end). We check if we should be in COMPLETED state, and dispatch an event to run the state machine. But we still do this if we're already in COMPLETED state, so we may end up calling a PlaybackEnded() twice, and dispatching an "ended" event twice. I think this may be causing bug 907162 to fail again which spiked reproducing after I landed bug 973408.
Don't run COMPLETED case twice.
Attachment #8389081 - Flags: review?(paul)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.