mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1511607 - don't suspend background video decoding for unseekable media. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D14821 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
7c5190820e
commit
9abf52aa0f
@ -974,6 +974,14 @@ void MediaDecoder::UpdateVideoDecodeMode() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Seeking is required when leaving suspend mode.
|
||||
if (!mMediaSeekable) {
|
||||
LOG("UpdateVideoDecodeMode(), set Normal because the media is not "
|
||||
"seekable");
|
||||
mDecoderStateMachine->SetVideoDecodeMode(VideoDecodeMode::Normal);
|
||||
return;
|
||||
}
|
||||
|
||||
// If mHasSuspendTaint is set, never suspend the video decoder.
|
||||
if (mHasSuspendTaint) {
|
||||
LOG("UpdateVideoDecodeMode(), set Normal because the element has been "
|
||||
|
Loading…
Reference in New Issue
Block a user