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:
@ -171,7 +171,7 @@ VCMJitterBuffer::~VCMJitterBuffer() {
|
||||
}
|
||||
|
||||
void VCMJitterBuffer::UpdateHistograms() {
|
||||
if (num_packets_ <= 0) {
|
||||
if (num_packets_ <= 0 || !running_) {
|
||||
return;
|
||||
}
|
||||
int64_t elapsed_sec =
|
||||
|
||||
Reference in New Issue
Block a user