From 763faeab4e5a65c26af0b5ed0f9f8ec445bb329c Mon Sep 17 00:00:00 2001 From: "turaj@webrtc.org" Date: Thu, 31 Jan 2013 18:21:58 +0000 Subject: [PATCH] Removing a codec from NetEq database has a bug. |funcDurationEst| is not updated. This is discovered during a test for controlling delay. It is not simple to reproduce it. Bug= test=manual test verified that |functionDurationEst| is correctly updated. Review URL: https://webrtc-codereview.appspot.com/1074013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3448 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_coding/neteq/codec_db.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc/modules/audio_coding/neteq/codec_db.c b/webrtc/modules/audio_coding/neteq/codec_db.c index 3464ad764..c3fc940dd 100644 --- a/webrtc/modules/audio_coding/neteq/codec_db.c +++ b/webrtc/modules/audio_coding/neteq/codec_db.c @@ -333,6 +333,7 @@ int WebRtcNetEQ_DbRemove(CodecDbInst_t *inst, enum WebRtcNetEQDecoder codec) inst->funcDecodePLC[i] = inst->funcDecodePLC[i + 1]; inst->funcGetMDinfo[i] = inst->funcGetMDinfo[i + 1]; inst->funcGetPitch[i] = inst->funcGetPitch[i + 1]; + inst->funcDurationEst[i] = inst->funcDurationEst[i + 1]; inst->funcUpdBWEst[i] = inst->funcUpdBWEst[i + 1]; inst->funcGetErrorCode[i] = inst->funcGetErrorCode[i + 1]; inst->codec_fs[i] = inst->codec_fs[i + 1]; @@ -346,6 +347,7 @@ int WebRtcNetEQ_DbRemove(CodecDbInst_t *inst, enum WebRtcNetEQDecoder codec) inst->funcDecodePLC[i] = NULL; inst->funcGetMDinfo[i] = NULL; inst->funcGetPitch[i] = NULL; + inst->funcDurationEst[i] = NULL; inst->funcUpdBWEst[i] = NULL; inst->funcGetErrorCode[i] = NULL; inst->codec_fs[i] = 0;