зеркало из https://github.com/mozilla/gecko-dev.git
Bug 890394 - Prevent incorrect state transition. r=doublec
This commit is contained in:
Родитель
918fe06248
Коммит
a560aada0b
|
@ -2044,8 +2044,11 @@ void MediaDecoderStateMachine::DecodeSeek()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mDecoder->StartProgressUpdates();
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Try to decode another frame to detect if we're at the end...
|
// Try to decode another frame to detect if we're at the end...
|
||||||
LOG(PR_LOG_DEBUG, ("%p Seek completed, mCurrentFrameTime=%lld\n",
|
LOG(PR_LOG_DEBUG, ("%p Seek completed, mCurrentFrameTime=%lld\n",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче