mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 804387. Part 3: When a global underrun happens, don't insert blocked time, just cut that time out of the entire MediaStreamGraph timeline instead. r=jesup
--HG-- extra : rebase_source : 94f166e66f5401130b27867dd2b5ca039c704f14
This commit is contained in:
parent
a30c2de902
commit
327efad3e3
@ -772,15 +772,7 @@ MediaStreamGraphImpl::UpdateCurrentTime()
|
|||||||
SecondsToMediaTime((now - mCurrentTimeStamp).ToSeconds()) + mCurrentTime;
|
SecondsToMediaTime((now - mCurrentTimeStamp).ToSeconds()) + mCurrentTime;
|
||||||
if (mStateComputedTime < nextCurrentTime) {
|
if (mStateComputedTime < nextCurrentTime) {
|
||||||
LOG(PR_LOG_WARNING, ("Media graph global underrun detected"));
|
LOG(PR_LOG_WARNING, ("Media graph global underrun detected"));
|
||||||
LOG(PR_LOG_DEBUG, ("Advancing mStateComputedTime from %f to %f",
|
nextCurrentTime = mStateComputedTime;
|
||||||
MediaTimeToSeconds(mStateComputedTime),
|
|
||||||
MediaTimeToSeconds(nextCurrentTime)));
|
|
||||||
// Advance mStateComputedTime to nextCurrentTime by
|
|
||||||
// adding blocked time to all streams starting at mStateComputedTime
|
|
||||||
for (uint32_t i = 0; i < mStreams.Length(); ++i) {
|
|
||||||
mStreams[i]->mBlocked.SetAtAndAfter(mStateComputedTime, true);
|
|
||||||
}
|
|
||||||
mStateComputedTime = nextCurrentTime;
|
|
||||||
}
|
}
|
||||||
mCurrentTimeStamp = now;
|
mCurrentTimeStamp = now;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user