Index: webrtc/modules/audio_coding/acm2/audio_coding_module.cc |
diff --git a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc |
index 73f03a47adc57915f5fc97d01ad3c8e6c05bb809..4784a8721f8d049bd2628e0f151b0da0f3945b89 100644 |
--- a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc |
+++ b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc |
@@ -948,8 +948,10 @@ |
// If the receiver is already initialized then we want to destroy any |
// existing decoders. After a call to this function, we should have a clean |
// start-up. |
- if (receiver_initialized_) |
- receiver_.RemoveAllCodecs(); |
+ if (receiver_initialized_) { |
+ if (receiver_.RemoveAllCodecs() < 0) |
+ return -1; |
+ } |
receiver_.ResetInitialDelay(); |
receiver_.SetMinimumDelay(0); |
receiver_.SetMaximumDelay(0); |