mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 829191 - Reset mEventDeliveryPaused before calling DispatchPendingMediaEvents. r=roc
This commit is contained in:
parent
cd3584aced
commit
f3bbbf0dac
@ -2320,8 +2320,8 @@ nsresult nsHTMLMediaElement::FinishDecoderSetup(MediaDecoder* aDecoder,
|
||||
|
||||
// The new stream has not been suspended by us.
|
||||
mPausedForInactiveDocumentOrChannel = false;
|
||||
mPendingEvents.Clear();
|
||||
mEventDeliveryPaused = false;
|
||||
mPendingEvents.Clear();
|
||||
|
||||
aDecoder->SetAudioChannelType(mAudioChannelType);
|
||||
aDecoder->SetAudioCaptured(mAudioCaptured);
|
||||
@ -3113,8 +3113,8 @@ void nsHTMLMediaElement::SuspendOrResumeElement(bool aPauseElement, bool aSuspen
|
||||
GetSrcMediaStream()->ChangeExplicitBlockerCount(-1);
|
||||
}
|
||||
if (mEventDeliveryPaused) {
|
||||
DispatchPendingMediaEvents();
|
||||
mEventDeliveryPaused = false;
|
||||
DispatchPendingMediaEvents();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user