зеркало из https://github.com/mozilla/gecko-dev.git
Bug 503623 - Ensure the decoder doesn't sleep forever after filling its buffers when paused. r=doublec a=roc
This commit is contained in:
Родитель
a269ad916b
Коммит
50692b0a9a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче