Bug 1407895 - ensure mDecoder->Suspend() is called on a newly created decoder if mPausedForInactiveDocumentOrChannel is true. r=gerald
See comment 3 for the root cause. MozReview-Commit-ID: CX5npKv2eWG
This commit is contained in:
@@ -5071,6 +5071,10 @@ HTMLMediaElement::FinishDecoderSetup(MediaDecoder* aDecoder)
|
||||
// This will also do an AddRemoveSelfReference.
|
||||
NotifyOwnerDocumentActivityChanged();
|
||||
|
||||
if (mPausedForInactiveDocumentOrChannel) {
|
||||
mDecoder->Suspend();
|
||||
}
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
if (!mPaused) {
|
||||
SetPlayedOrSeeked(true);
|
||||
|
||||
Reference in New Issue
Block a user