modules/video_coding/main/source/video_sender.cc
int32_t VideoSender::RegisterProtectionCallback(
    VCMProtectionCallback* protection_callback) {
  CriticalSectionScoped cs(_sendCritSect);
  DCHECK(protection_callback_ == protection_callback ||
         !protection_callback_ ||
         !protection_callback) << "Overwriting the previous callback?";
  protection_callback_ = protection_callback;
  return VCM_OK;
}
// Register a video protection callback which will be called to deliver the
// requested FEC rate and NACK status (on/off).
Register a video protection callback which will be called to deliver the
requested FEC rate and NACK status (on/off).
Register a video protection callback which will be called to deliver the requested FEC rate and NACK status ( on / off ) .
int32_t VideoSender::RegisterProtectionCallback(
    VCMProtectionCallback* protection_callback) {
  CriticalSectionScoped cs(_sendCritSect);
  DCHECK(protection_callback_ == protection_callback ||
         !protection_callback_ ||
         !protection_callback) << "Overwriting the previous callback?";
  protection_callback_ = protection_callback;
  return VCM_OK;
}
int32_t VideoSender :: RegisterProtectionCallback ( VCMProtectionCallback * protection_callback ) { CriticalSectionScoped cs ( _sendCritSect ) ; DCHECK ( protection_callback_ == protection_callback || ! protection_callback_ || ! protection_callback ) << " " ; protection_callback_ = protection_callback ; return VCM_OK ; }
Register a video protection callback which will be called to deliver the
requested FEC rate and NACK status (on/off).
Register a video protection callback which will be called to deliver the requested FEC rate and NACK status ( on / off ) .