mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1052378 - Replace stray mIsXXXDecoding fields with IsXXXDecoding() function calls in MediaDecoderStateMachine. r=kinetik
This commit is contained in:
parent
3967df73d8
commit
f0dc4e10b0
@ -586,8 +586,8 @@ MediaDecoderStateMachine::DecodeVideo()
|
||||
// soon anyway and we'll want to be able to display frames immediately
|
||||
// after buffering finishes.
|
||||
if (mState == DECODER_STATE_DECODING &&
|
||||
mIsVideoDecoding &&
|
||||
((!mIsAudioPrerolling && mIsAudioDecoding &&
|
||||
IsVideoDecoding() &&
|
||||
((!mIsAudioPrerolling && IsAudioDecoding() &&
|
||||
GetDecodedAudioDuration() < mLowAudioThresholdUsecs * mPlaybackRate) ||
|
||||
(!mIsVideoPrerolling && IsVideoDecoding() &&
|
||||
// don't skip frame when |clock time| <= |mVideoFrameEndTime| for
|
||||
|
@ -829,14 +829,6 @@ protected:
|
||||
bool mIsAudioPrerolling;
|
||||
bool mIsVideoPrerolling;
|
||||
|
||||
// True when we have an audio stream that we're decoding, and we have not
|
||||
// yet decoded to end of stream.
|
||||
bool mIsAudioDecoding;
|
||||
|
||||
// True when we have a video stream that we're decoding, and we have not
|
||||
// yet decoded to end of stream.
|
||||
bool mIsVideoDecoding;
|
||||
|
||||
// True when we have dispatched a task to the decode task queue to request
|
||||
// decoded audio/video, and/or we are waiting for the requested sample to be
|
||||
// returned by callback from the Reader.
|
||||
|
Loading…
Reference in New Issue
Block a user