From 509754c4c9569b29e60f2ec4f3f1dad3453de66c Mon Sep 17 00:00:00 2001 From: "mflodman@webrtc.org" Date: Mon, 10 Jun 2013 15:50:12 +0000 Subject: [PATCH] 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 --- webrtc/video_engine/vie_channel.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webrtc/video_engine/vie_channel.cc b/webrtc/video_engine/vie_channel.cc index 8506ea9cb..3c8a24fe5 100644 --- a/webrtc/video_engine/vie_channel.cc +++ b/webrtc/video_engine/vie_channel.cc @@ -166,6 +166,11 @@ int32_t ViEChannel::Init() { "%s: VCM::InitializeReceiver failure", __FUNCTION__); 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) { WEBRTC_TRACE(kTraceError, kTraceVideo, ViEId(engine_id_, channel_id_), "%s: VCM::RegisterReceiveCallback failure", __FUNCTION__);