Bug 890394 - Prevent incorrect state transition. r=doublec

This commit is contained in:
Sotaro Ikeda 2013-07-10 09:58:04 -04:00
Родитель 918fe06248
Коммит a560aada0b
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2044,8 +2044,11 @@ void MediaDecoderStateMachine::DecodeSeek()
}
}
mDecoder->StartProgressUpdates();
if (mState == DECODER_STATE_DORMANT || mState == DECODER_STATE_SHUTDOWN)
if (mState == DECODER_STATE_DECODING_METADATA ||
mState == DECODER_STATE_DORMANT ||
mState == DECODER_STATE_SHUTDOWN) {
return;
}
// Try to decode another frame to detect if we're at the end...
LOG(PR_LOG_DEBUG, ("%p Seek completed, mCurrentFrameTime=%lld\n",