| Index: webrtc/voice_engine/channel.cc
|
| diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
|
| index 943a04572be088689cb655578001dd533703c0b7..045f3c71f936fa301e83d5ab174fa7e68d02ab13 100644
|
| --- a/webrtc/voice_engine/channel.cc
|
| +++ b/webrtc/voice_engine/channel.cc
|
| @@ -3098,11 +3098,7 @@ void Channel::GetDecodingCallStatistics(AudioDecodingCallStats* stats) const {
|
| bool Channel::GetDelayEstimate(int* jitter_buffer_delay_ms,
|
| int* playout_buffer_delay_ms) const {
|
| rtc::CritScope lock(&video_sync_lock_);
|
| - if (_average_jitter_buffer_delay_us == 0) {
|
| - return false;
|
| - }
|
| - *jitter_buffer_delay_ms =
|
| - (_average_jitter_buffer_delay_us + 500) / 1000 + _recPacketDelayMs;
|
| + *jitter_buffer_delay_ms = audio_coding_->FilteredCurrentDelayMs();
|
| *playout_buffer_delay_ms = playout_delay_ms_;
|
| return true;
|
| }
|
| @@ -3315,6 +3311,9 @@ void Channel::UpdatePlayoutTimestamp(bool rtcp) {
|
| }
|
|
|
| // Called for incoming RTP packets after successful RTP header parsing.
|
| +// TODO(henrik.lundin): Clean out this method. With the introduction of
|
| +// AudioCoding::FilteredCurrentDelayMs() most (if not all) of this method can
|
| +// be deleted, along with a few member variables. (WebRTC issue 6237.)
|
| void Channel::UpdatePacketDelay(uint32_t rtp_timestamp,
|
| uint16_t sequence_number) {
|
| WEBRTC_TRACE(kTraceStream, kTraceVoice, VoEId(_instanceId, _channelId),
|
|
|