зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1057978 - do nothing in MediaDecoderStateMachine::Seek() while shutting down. r=cpearce
This commit is contained in:
Родитель
85ea4a47c6
Коммит
1352a84f62
|
@ -1472,6 +1472,10 @@ void MediaDecoderStateMachine::Seek(const SeekTarget& aTarget)
|
|||
NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
|
||||
ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
|
||||
|
||||
if (mState == DECODER_STATE_SHUTDOWN) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We need to be able to seek both at a transport level and at a media level
|
||||
// to seek.
|
||||
if (!mDecoder->IsMediaSeekable()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче