diff --git a/talk/media/webrtc/fakewebrtcvoiceengine.h b/talk/media/webrtc/fakewebrtcvoiceengine.h index 25c952d33..e3b7537cf 100644 --- a/talk/media/webrtc/fakewebrtcvoiceengine.h +++ b/talk/media/webrtc/fakewebrtcvoiceengine.h @@ -862,9 +862,12 @@ class FakeWebRtcVoiceEngine } #ifdef USE_WEBRTC_DEV_BRANCH WEBRTC_FUNC(SetREDStatus, (int channel, bool enable, int redPayloadtype)) { -#else + return SetFECStatus(channel, enable, redPayloadtype); + } +#endif + // TODO(minyue): remove the below function when transition to SetREDStatus + // is finished. WEBRTC_FUNC(SetFECStatus, (int channel, bool enable, int redPayloadtype)) { -#endif // USE_WEBRTC_DEV_BRANCH WEBRTC_CHECK_CHANNEL(channel); channels_[channel]->red = enable; channels_[channel]->red_type = redPayloadtype; @@ -872,9 +875,12 @@ class FakeWebRtcVoiceEngine } #ifdef USE_WEBRTC_DEV_BRANCH WEBRTC_FUNC(GetREDStatus, (int channel, bool& enable, int& redPayloadtype)) { -#else + return GetFECStatus(channel, enable, redPayloadtype); + } +#endif + // TODO(minyue): remove the below function when transition to GetREDStatus + // is finished. WEBRTC_FUNC(GetFECStatus, (int channel, bool& enable, int& redPayloadtype)) { -#endif // USE_WEBRTC_DEV_BRANCH WEBRTC_CHECK_CHANNEL(channel); enable = channels_[channel]->red; redPayloadtype = channels_[channel]->red_type;