diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index f6d7fa47b0e..1c5ad309463 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -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(VideoQueue().GetSize()) <= SCARCE_VIDEO_QUEUE_SIZE; SAMPLE_LOG("Queueing video task - queued=%i, decoder-queued=%o, skip=%i, time=%lld",