mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1252344. Part 2 - remove unnecessary checks from MediaDecoderStateMachine::NeedToDecodeAudio(). r=bechen.
MozReview-Commit-ID: LiFvkp9RNsI
This commit is contained in:
parent
48fc8b32bc
commit
978631277d
@ -563,8 +563,7 @@ 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)));
|
||||
|
Loading…
Reference in New Issue
Block a user