mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197051 - Don't try to decode ahead while seeking - r=jya
This commit is contained in:
parent
36e9ca19a9
commit
e54922879c
@ -1720,7 +1720,7 @@ MediaDecoderStateMachine::RequestVideoData()
|
|||||||
bool skipToNextKeyFrame = mSentFirstFrameLoadedEvent &&
|
bool skipToNextKeyFrame = mSentFirstFrameLoadedEvent &&
|
||||||
NeedToSkipToNextKeyframe();
|
NeedToSkipToNextKeyframe();
|
||||||
int64_t currentTime = mState == DECODER_STATE_SEEKING ? 0 : GetMediaTime();
|
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;
|
static_cast<uint32_t>(VideoQueue().GetSize()) <= SCARCE_VIDEO_QUEUE_SIZE;
|
||||||
|
|
||||||
SAMPLE_LOG("Queueing video task - queued=%i, decoder-queued=%o, skip=%i, time=%lld",
|
SAMPLE_LOG("Queueing video task - queued=%i, decoder-queued=%o, skip=%i, time=%lld",
|
||||||
|
Loading…
Reference in New Issue
Block a user