mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 861136 - Don't start buffering media state machine when we don't need to. r=roc
This commit is contained in:
parent
f81fe641a7
commit
dfdc0cfb5d
@ -2448,6 +2448,15 @@ bool MediaDecoderStateMachine::JustExitedQuickBuffering()
|
||||
void MediaDecoderStateMachine::StartBuffering()
|
||||
{
|
||||
AssertCurrentThreadInMonitor();
|
||||
|
||||
if (mState != DECODER_STATE_DECODING) {
|
||||
// We only move into BUFFERING state if we're actually decoding.
|
||||
// If we're currently doing something else, we don't need to buffer,
|
||||
// and more importantly, we shouldn't overwrite mState to interrupt
|
||||
// the current operation, as that could leave us in an inconsistent
|
||||
// state!
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsPlaying()) {
|
||||
StopPlayback();
|
||||
|
Loading…
Reference in New Issue
Block a user