Fixes two bugs in receive statistics.
- Reported bitrate wasn't reset correctly when no frames had been received. - Internal framerate estimate wasn't reset when no frames had been received. BUG=1713 Review URL: https://webrtc-codereview.appspot.com/1377004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3924 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -335,7 +335,8 @@ void VCMJitterBuffer::IncomingRateStatistics(unsigned int* framerate,
|
|||||||
// No frames since last call
|
// No frames since last call
|
||||||
time_last_incoming_frame_count_ = clock_->TimeInMilliseconds();
|
time_last_incoming_frame_count_ = clock_->TimeInMilliseconds();
|
||||||
*framerate = 0;
|
*framerate = 0;
|
||||||
bitrate = 0;
|
*bitrate = 0;
|
||||||
|
incoming_frame_rate_ = 0;
|
||||||
incoming_bit_rate_ = 0;
|
incoming_bit_rate_ = 0;
|
||||||
}
|
}
|
||||||
TRACE_COUNTER1("webrtc", "JBIncomingFramerate", incoming_frame_rate_);
|
TRACE_COUNTER1("webrtc", "JBIncomingFramerate", incoming_frame_rate_);
|
||||||
|
|||||||
Reference in New Issue
Block a user