Bug 1163924 - fix calculation of blockForStateMachineNotPlaying. r=roc.

This commit is contained in:
JW Wang 2015-05-19 14:42:11 +08:00
Родитель 2dc2a39002
Коммит 1f88ef30b7
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -357,8 +357,7 @@ void MediaDecoder::UpdateStreamBlockingForStateMachinePlaying()
return;
}
bool blockForStateMachineNotPlaying =
mDecoderStateMachine && !mDecoderStateMachine->IsPlaying() &&
mDecoderStateMachine->GetState() != MediaDecoderStateMachine::DECODER_STATE_COMPLETED;
mDecoderStateMachine && !mDecoderStateMachine->IsPlaying();
if (blockForStateMachineNotPlaying != GetDecodedStream()->mHaveBlockedForStateMachineNotPlaying) {
GetDecodedStream()->mHaveBlockedForStateMachineNotPlaying = blockForStateMachineNotPlaying;
int32_t delta = blockForStateMachineNotPlaying ? 1 : -1;