Bug 1329098. Part 3 - remove some temp vairables.
MozReview-Commit-ID: 3gz79Tzidtf
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2213,29 +2213,23 @@ NextFrameSeekingState::HandleVideoNotDec
mMaster->DecodeError(aError);
}
}
void
MediaDecoderStateMachine::
BufferingState::DispatchDecodeTasksIfNeeded()
{
- const bool needToDecodeAudio =
- mMaster->IsAudioDecoding() &&
- !mMaster->HaveEnoughDecodedAudio();
-
- const bool needToDecodeVideo =
- mMaster->IsVideoDecoding() &&
- !mMaster->HaveEnoughDecodedVideo();
-
- if (needToDecodeAudio) {
+ if (mMaster->IsAudioDecoding() &&
+ !mMaster->HaveEnoughDecodedAudio()) {
mMaster->EnsureAudioDecodeTaskQueued();
}
- if (needToDecodeVideo) {
+ if (mMaster->IsVideoDecoding() &&
+ !mMaster->HaveEnoughDecodedVideo()) {
mMaster->EnsureVideoDecodeTaskQueued();
}
}
void
MediaDecoderStateMachine::
BufferingState::Step()
{