Bug 503623 - Ensure the decoder doesn't sleep forever after filling its buffers when paused. r=doublec a=roc

This commit is contained in:
Chris Pearce 2010-11-05 13:44:33 +13:00
Родитель a269ad916b
Коммит 50692b0a9a
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -1263,11 +1263,14 @@ void nsBuiltinDecoderStateMachine::AdvanceFrame()
// duration.
RenderVideoFrame(videoData);
}
mDecoder->GetMonitor().NotifyAll();
frameDuration = videoData->mEndTime - videoData->mTime;
videoData = nsnull;
}
// Kick the decode thread in case it filled its buffers and put itself
// to sleep.
mDecoder->GetMonitor().NotifyAll();
// Cap the current time to the larger of the audio and video end time.
// This ensures that if we're running off the system clock, we don't
// advance the clock to after the media end time.