Bug 1197051 - Don't try to decode ahead while seeking - r=jya

This commit is contained in:
Edwin Flores 2015-08-21 17:24:18 +10:00 committed by Jean-Yves Avenard
parent 36e9ca19a9
commit e54922879c

View File

@ -1720,7 +1720,7 @@ MediaDecoderStateMachine::RequestVideoData()
bool skipToNextKeyFrame = mSentFirstFrameLoadedEvent &&
NeedToSkipToNextKeyframe();
int64_t currentTime = mState == DECODER_STATE_SEEKING ? 0 : GetMediaTime();
bool forceDecodeAhead = mSentFirstFrameLoadedEvent &&
bool forceDecodeAhead = mSentFirstFrameLoadedEvent && !IsSeeking() &&
static_cast<uint32_t>(VideoQueue().GetSize()) <= SCARCE_VIDEO_QUEUE_SIZE;
SAMPLE_LOG("Queueing video task - queued=%i, decoder-queued=%o, skip=%i, time=%lld",