зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1163924 - fix calculation of blockForStateMachineNotPlaying. r=roc.
This commit is contained in:
Родитель
2dc2a39002
Коммит
1f88ef30b7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче