bug 975782 stop delaying the load event when media fetch has stalled r=cpearce,f=kinetik

This commit is contained in:
Karl Tomlinson
2014-11-28 18:23:37 +13:00
parent 1ef2b3f9f0
commit 382c7d5d95
12 changed files with 5 additions and 17 deletions

View File

@@ -3111,11 +3111,16 @@ void HTMLMediaElement::CheckProgress(bool aHaveNewProgress)
"timer dispatched when there was no timer");
// Were stalled. Restart timer.
StartProgressTimer();
if (!mLoadedDataFired) {
ChangeDelayLoadStatus(true);
}
}
}
if (now - mDataTime >= TimeDuration::FromMilliseconds(STALL_MS)) {
DispatchAsyncEvent(NS_LITERAL_STRING("stalled"));
ChangeDelayLoadStatus(false);
NS_ASSERTION(mProgressTimer, "detected stalled without timer");
// Stop timer events, which prevents repeated stalled events until there
// is more progress.