Improve wraparound handling in the render time extrapolator.

This was actually working as intended, but as r3970 changed when render timestamps were extrapolated to when a frame was taken out for decoding, the wraparound could have happened in the Update() step before it had happened in the ExtrapolateLocalTime() step. This causes render timestamps to be generated 13 hours into the future.

TEST=trybots
BUG=1787
R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1497004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4055 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org
2013-05-17 12:55:07 +00:00
parent 14d7700d00
commit 9f557c140e
9 changed files with 191 additions and 301 deletions

View File

@ -200,7 +200,7 @@ VCMEncodedFrame* VCMReceiver::FrameForDecoding(
if (timing_error) {
// Timing error => reset timing and flush the jitter buffer.
jitter_buffer_.Flush();
timing_->Reset(clock_->TimeInMilliseconds());
timing_->Reset();
return NULL;
}