mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 829191 - Reset mEventDeliveryPaused before calling DispatchPendingMediaEvents. r=roc
This commit is contained in:
parent
13948d8c34
commit
d09c72b061
@ -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