Bug 829191 - Reset mEventDeliveryPaused before calling DispatchPendingMediaEvents. r=roc

This commit is contained in:
Matthew Gregan 2013-01-14 11:46:50 +13:00
parent 13948d8c34
commit d09c72b061

View File

@ -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();
}
}
}