mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce.
This commit is contained in:
parent
c9f4e17922
commit
4574413b61
@ -1392,8 +1392,8 @@ void MediaDecoderStateMachine::StartDecoding()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reset other state to pristine values before starting decode.
|
// Reset other state to pristine values before starting decode.
|
||||||
mIsAudioPrerolling = !DonePrerollingAudio();
|
mIsAudioPrerolling = !DonePrerollingAudio() && !mAudioWaitRequest.Exists();
|
||||||
mIsVideoPrerolling = !DonePrerollingVideo();
|
mIsVideoPrerolling = !DonePrerollingVideo() && !mVideoWaitRequest.Exists();
|
||||||
|
|
||||||
// Ensure that we've got tasks enqueued to decode data if we need to.
|
// Ensure that we've got tasks enqueued to decode data if we need to.
|
||||||
DispatchDecodeTasksIfNeeded();
|
DispatchDecodeTasksIfNeeded();
|
||||||
|
Loading…
Reference in New Issue
Block a user