Bug 1521964 - Don't suspend the video decoder when cloning a video visually. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D20674
This commit is contained in:
Mike Conley
2019-03-01 22:36:53 +00:00
parent 94cb65b457
commit 70e29286eb
3 changed files with 24 additions and 0 deletions

View File

@@ -471,6 +471,7 @@ void HTMLVideoElement::MaybeBeginCloningVisually() {
mVisualCloneTarget->GetVideoFrameContainer();
if (mdsm && container) {
mdsm->SetSecondaryVideoContainer(container);
mDecoder->SetCloningVisually(true);
}
} else if (mSrcStream) {
VideoFrameContainer* container =
@@ -488,6 +489,7 @@ void HTMLVideoElement::EndCloningVisually() {
MediaDecoderStateMachine* mdsm = mDecoder->GetStateMachine();
if (mdsm) {
mdsm->SetSecondaryVideoContainer(nullptr);
mDecoder->SetCloningVisually(false);
}
} else if (mSrcStream) {
VideoFrameContainer* container =