Index: webrtc/modules/audio_coding/neteq/delay_manager.cc |
diff --git a/webrtc/modules/audio_coding/neteq/delay_manager.cc b/webrtc/modules/audio_coding/neteq/delay_manager.cc |
index 5ccb81c3f1e9592ab54ec6bf5a8a22947e18126d..a6efdab8dccc0ca01e727140b706ecb77a6cacc7 100644 |
--- a/webrtc/modules/audio_coding/neteq/delay_manager.cc |
+++ b/webrtc/modules/audio_coding/neteq/delay_manager.cc |
@@ -371,12 +371,8 @@ int DelayManager::TargetLevel() const { |
return target_level_; |
} |
-void DelayManager::LastDecoderType(NetEqDecoder decoder_type) { |
- if (decoder_type == NetEqDecoder::kDecoderAVT || |
- decoder_type == NetEqDecoder::kDecoderCNGnb || |
- decoder_type == NetEqDecoder::kDecoderCNGwb || |
- decoder_type == NetEqDecoder::kDecoderCNGswb32kHz || |
- decoder_type == NetEqDecoder::kDecoderCNGswb48kHz) { |
+void DelayManager::LastDecodedWasCngOrDtmf(bool it_was) { |
+ if (it_was) { |
last_pack_cng_or_dtmf_ = 1; |
} else if (last_pack_cng_or_dtmf_ != 0) { |
last_pack_cng_or_dtmf_ = -1; |