Making no NACK mode work again in VideoEngine.

BUG=1910
TEST=ViE autotest loopback with no protection and some percent packet loss
R=mikhal@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1631004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4203 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2013-06-10 15:50:12 +00:00
parent 1819fd711a
commit 509754c4c9

View File

@ -166,6 +166,11 @@ int32_t ViEChannel::Init() {
"%s: VCM::InitializeReceiver failure", __FUNCTION__); "%s: VCM::InitializeReceiver failure", __FUNCTION__);
return -1; return -1;
} }
if (vcm_.SetVideoProtection(kProtectionKeyOnLoss, true)) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(engine_id_, channel_id_),
"%s: VCM::SetVideoProtection failure", __FUNCTION__);
return -1;
}
if (vcm_.RegisterReceiveCallback(this) != 0) { if (vcm_.RegisterReceiveCallback(this) != 0) {
WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(engine_id_, channel_id_), WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(engine_id_, channel_id_),
"%s: VCM::RegisterReceiveCallback failure", __FUNCTION__); "%s: VCM::RegisterReceiveCallback failure", __FUNCTION__);