Make sure histograms in jitter buffer are only updated if running.

BUG=
R=pbos@webrtc.org, stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#9076}
This commit is contained in:
Åsa Persson
2015-04-24 08:52:11 +02:00
parent affcfb2f16
commit a96f02b6f3
4 changed files with 89 additions and 6 deletions

View File

@ -171,7 +171,7 @@ VCMJitterBuffer::~VCMJitterBuffer() {
}
void VCMJitterBuffer::UpdateHistograms() {
if (num_packets_ <= 0) {
if (num_packets_ <= 0 || !running_) {
return;
}
int64_t elapsed_sec =