зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1135785 - Stop invoking StopPlayback in SetDormant. r=cpearce
This already gets incoded in the DECODER_STATE_DORMANT case of RunStateMachine, which will run momentarily on the state machine thread. Doing this allows us to avoid calling StopPlayback on the main thread.
This commit is contained in:
Родитель
ba77f2e511
Коммит
8955631001
|
@ -1511,7 +1511,6 @@ void MediaDecoderStateMachine::SetDormant(bool aDormant)
|
|||
mCurrentSeekTarget.Reset();
|
||||
ScheduleStateMachine();
|
||||
SetState(DECODER_STATE_DORMANT);
|
||||
StopPlayback();
|
||||
mDecoder->GetReentrantMonitor().NotifyAll();
|
||||
} else if ((aDormant != true) && (mState == DECODER_STATE_DORMANT)) {
|
||||
mDecodingFrozenAtStateDecoding = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче