Fix build error in NetEQ when disabling NETEQ_CNG_CODEC

An #ifdef guard was missing, which caused NetEQ not to compile
when NETEQ_CNG_CODEC was not defined. This is Issue 10 
(http://code.google.com/p/webrtc/issues/detail?id=10).
Review URL: http://webrtc-codereview.appspot.com/43002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@91 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hlundin@google.com 2011-06-16 11:44:52 +00:00
parent a6f54fd726
commit 0f15aea0ea

View File

@ -341,11 +341,13 @@ int WebRtcNetEQ_RecOutInternal(DSPInst_t *inst, WebRtc_Word16 *pw16_outData,
inst->codec_ptr_inst.funcDecodeInit(inst->codec_ptr_inst.codec_state);
}
#ifdef NETEQ_CNG_CODEC
/* And reset CNG */
if (inst->CNG_Codec_inst != NULL)
{
WebRtcCng_InitDec(inst->CNG_Codec_inst);
}
#endif /*NETEQ_CNG_CODEC*/
}
fs_mult = WebRtcNetEQ_CalcFsMult(inst->fs);