diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index 9cfb3d61582..84a2dc4b913 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -563,11 +563,10 @@ MediaDecoderStateMachine::NeedToDecodeAudio() return IsAudioDecoding() && ((mState == DECODER_STATE_SEEKING && mDecodeToSeekTarget) || - (IsDecodingFirstFrame() && - IsAudioDecoding() && AudioQueue().GetSize() == 0) || + (IsDecodingFirstFrame() && AudioQueue().GetSize() == 0) || (!mMinimizePreroll && - !HaveEnoughDecodedAudio(mAmpleAudioThresholdUsecs * mPlaybackRate) && - (mState != DECODER_STATE_SEEKING || mDecodeToSeekTarget))); + !HaveEnoughDecodedAudio(mAmpleAudioThresholdUsecs * mPlaybackRate) && + (mState != DECODER_STATE_SEEKING || mDecodeToSeekTarget))); } bool