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:
Bobby Holley 2015-02-24 08:41:23 -08:00
Родитель ba77f2e511
Коммит 8955631001
1 изменённых файлов: 0 добавлений и 1 удалений

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

@ -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;