Bug 1237174 - Remove the unnecessary code since mState won't change in the case of DECODER_STATE_COMPLETED. r=bechen.

This commit is contained in:
JW Wang 2016-01-06 18:18:13 +08:00
parent 554b4b7a1b
commit 512004fc5b

View File

@ -2352,13 +2352,6 @@ nsresult MediaDecoderStateMachine::RunStateMachine()
// is restarted correctly.
StopPlayback();
if (mState != DECODER_STATE_COMPLETED) {
// While we're presenting a frame we can change state. Whatever changed
// our state should have scheduled another state machine run.
NS_ASSERTION(IsStateMachineScheduled(), "Must have timer scheduled");
return NS_OK;
}
if (mPlayState == MediaDecoder::PLAY_STATE_PLAYING &&
!mSentPlaybackEndedEvent)
{