зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1173248 - Remove the workaround introduced to MDSM by bug 951278. r=cpearce.
This commit is contained in:
Родитель
0fe7e5232d
Коммит
f781334cb2
|
@ -2970,11 +2970,7 @@ void MediaDecoderStateMachine::AdvanceFrame()
|
|||
int64_t delta = currentFrame->mTime - clock_time;
|
||||
TimeStamp presTime = nowTime + TimeDuration::FromMicroseconds(delta / mPlaybackRate);
|
||||
NS_ASSERTION(currentFrame->mTime >= mStartTime, "Should have positive frame time");
|
||||
// Filter out invalid frames by checking the frame time. FrameTime could be
|
||||
// zero if it's a initial frame.
|
||||
int64_t frameTime = currentFrame->mTime - mStartTime;
|
||||
if (frameTime > 0 || (frameTime == 0 && mPlayDuration == 0) ||
|
||||
IsRealTime()) {
|
||||
{
|
||||
ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
|
||||
// If we have video, we want to increment the clock in steps of the frame
|
||||
// duration.
|
||||
|
|
Загрузка…
Ссылка в новой задаче