Backed out changeset d7a32460bb32

This commit is contained in:
Matthew Gregan 2010-02-26 15:09:46 -08:00
Родитель e859be0d43
Коммит 1ff5236aae
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -936,12 +936,6 @@ void nsOggDecodeStateMachine::PlayFrame() {
time = hwtime < 0.0 ? time = hwtime < 0.0 ?
(TimeStamp::Now() - mPlayStartTime - mPauseDuration).ToSeconds() : (TimeStamp::Now() - mPlayStartTime - mPauseDuration).ToSeconds() :
hwtime; hwtime;
// Resynchronize the system clock against the audio clock.
if (hwtime >= 0.0) {
mPlayStartTime = TimeStamp::Now();
mPlayStartTime -= TimeDuration::FromMilliseconds(hwtime * 1000.0);
mPauseDuration = TimeDuration(0);
}
// Is it time for the next frame? Using an integer here avoids f.p. // Is it time for the next frame? Using an integer here avoids f.p.
// rounding errors that can cause multiple 0ms waits (Bug 495352) // rounding errors that can cause multiple 0ms waits (Bug 495352)
PRInt64 wait = PRInt64((frame->mTime - time)*1000); PRInt64 wait = PRInt64((frame->mTime - time)*1000);