Bug 846992 - Don't assume last video frames in media's timestamp covers all of audio overhang. r=kinetik

This commit is contained in:
Chris Pearce 2013-04-12 16:50:04 +12:00
parent 615be796de
commit 1df4850cc0

View File

@ -1946,8 +1946,9 @@ void MediaDecoderStateMachine::DecodeSeek()
if (HasVideo()) {
VideoData* video = mReader->VideoQueue().PeekFront();
if (video) {
NS_ASSERTION(video->mTime <= seekTime && seekTime <= video->mEndTime,
"Seek target should lie inside the first frame after seek");
NS_ASSERTION((video->mTime <= seekTime && seekTime <= video->mEndTime) ||
mReader->VideoQueue().IsFinished(),
"Seek target should lie inside the first frame after seek, unless it's the last frame.");
{
ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
RenderVideoFrame(video, TimeStamp::Now());