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
This commit is contained in:
parent
49d025f262
commit
848fad23c6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user