Refactor MediaOptimization protection methods.
Makes MediaOptimization::EnableProtectionMethod significantly less confusing. Also removing some dead methods in VideoSender. BUG= R=mflodman@webrtc.org TBR=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/42339004 Cr-Commit-Position: refs/heads/master@{#8693} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8693 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -236,9 +236,12 @@ int32_t VideoReceiver::SetVideoProtection(VCMVideoProtection videoProtection,
|
||||
}
|
||||
case kProtectionNackSender:
|
||||
case kProtectionFEC:
|
||||
case kProtectionPeriodicKeyFrames:
|
||||
// Ignore encoder modes.
|
||||
return VCM_OK;
|
||||
case kProtectionNone:
|
||||
// TODO(pbos): Implement like sender and remove enable parameter. Ignored
|
||||
// for now.
|
||||
break;
|
||||
}
|
||||
return VCM_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user