Bug 1043111 - Allow |mState==DECODER_STATE_DORMANT| in MediaDecoderStateMachine::ResetPlayback(). r=kinetik

This commit is contained in:
JW Wang 2014-07-23 20:29:00 +02:00
parent 4b3250e76e
commit 12ea633a7e

View File

@ -1405,7 +1405,9 @@ void MediaDecoderStateMachine::Play()
void MediaDecoderStateMachine::ResetPlayback() void MediaDecoderStateMachine::ResetPlayback()
{ {
MOZ_ASSERT(mState == DECODER_STATE_SEEKING || mState == DECODER_STATE_SHUTDOWN); MOZ_ASSERT(mState == DECODER_STATE_SEEKING ||
mState == DECODER_STATE_SHUTDOWN ||
mState == DECODER_STATE_DORMANT);
mVideoFrameEndTime = -1; mVideoFrameEndTime = -1;
mAudioStartTime = -1; mAudioStartTime = -1;
mAudioEndTime = -1; mAudioEndTime = -1;