From 848fad23c6d7f37b4e50b9671883ee7cfe581aeb Mon Sep 17 00:00:00 2001 From: "mikhal@webrtc.org" Date: Tue, 27 Sep 2011 16:30:59 +0000 Subject: [PATCH] video_coding: Updating media opt test - fixing call to protection callback. Review URL: http://webrtc-codereview.appspot.com/179003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@653 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/video_coding/main/test/media_opt_test.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/video_coding/main/test/media_opt_test.cc b/src/modules/video_coding/main/test/media_opt_test.cc index 1d15e39160..26b989d5c5 100644 --- a/src/modules/video_coding/main/test/media_opt_test.cc +++ b/src/modules/video_coding/main/test/media_opt_test.cc @@ -278,6 +278,7 @@ MediaOptTest::Perform() _rtp->RegisterIncomingDataCallback(&dataCallback); VideoProtectionCallback protectionCallback; + protectionCallback.RegisterRtpModule(_rtp); _vcm->RegisterProtectionCallback(&protectionCallback); // set error resilience / test parameters: @@ -290,17 +291,13 @@ MediaOptTest::Perform() _vcm->SetVideoProtection(kProtectionFEC, _fecEnabled); } - // START TEST + // START TEST VideoFrame sourceFrame; sourceFrame.VerifyAndAllocate(_lengthSourceFrame); WebRtc_UWord8* tmpBuffer = new WebRtc_UWord8[_lengthSourceFrame]; _vcm->SetChannelParameters((WebRtc_UWord32)_bitRate, (WebRtc_UWord8)_lossRate, _rttMS); _vcm->RegisterReceiveCallback(&receiveCallback); - // inform RTP Module of error resilience features - _rtp->SetFECCodeRate(protectionCallback.FECKeyRate(),protectionCallback.FECDeltaRate()); - _rtp->SetNACKStatus(protectionCallback.NACKMethod()); - _frameCnt = 0; _sumEncBytes = 0.0; _numFramesDropped = 0;