Bug 580531 - Add video demuxing/decoding stats. r=kinetik sr=roc

This commit is contained in:
Chris Pearce
2011-03-24 11:28:57 +13:00
parent d6f62df16b
commit d6fde26883
7 changed files with 159 additions and 4 deletions

View File

@@ -1369,6 +1369,7 @@ void nsBuiltinDecoderStateMachine::AdvanceFrame()
// duration.
RenderVideoFrame(currentFrame);
}
mDecoder->GetFrameStatistics().NotifyPresentedFrame();
PRInt64 now = (TimeStamp::Now() - mPlayStartTime + mPlayDuration).ToMilliseconds();
remainingTime = currentFrame->mEndTime - mStartTime - now;
currentFrame = nsnull;