Bug 1052378 - Replace stray mIsXXXDecoding fields with IsXXXDecoding() function calls in MediaDecoderStateMachine. r=kinetik

This commit is contained in:
Chris Pearce 2014-08-13 15:04:19 +12:00
parent 3967df73d8
commit f0dc4e10b0
2 changed files with 2 additions and 10 deletions

View File

@ -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

View File

@ -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.