Index: webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
index 2c5d0b6a976ae98b1470c16ae2c02e100dc29923..dd1c49b136c285512e20b450279bda9714429b49 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
@@ -231,14 +231,12 @@ size_t RTPSenderVideo::FecPacketOverhead() const { |
return overhead; |
} |
-void RTPSenderVideo::SetFecParameters(const FecProtectionParams* delta_params, |
- const FecProtectionParams* key_params) { |
+void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params, |
+ const FecProtectionParams& key_params) { |
rtc::CritScope cs(&crit_); |
- RTC_DCHECK(delta_params); |
- RTC_DCHECK(key_params); |
if (UlpfecEnabled()) { |
- delta_fec_params_ = *delta_params; |
- key_fec_params_ = *key_params; |
+ delta_fec_params_ = delta_params; |
+ key_fec_params_ = key_params; |
} |
} |
@@ -296,8 +294,8 @@ bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type, |
bool first_frame = first_frame_sent_(); |
{ |
rtc::CritScope cs(&crit_); |
- FecProtectionParams* fec_params = |
- frame_type == kVideoFrameKey ? &key_fec_params_ : &delta_fec_params_; |
+ const FecProtectionParams& fec_params = |
+ frame_type == kVideoFrameKey ? key_fec_params_ : delta_fec_params_; |
producer_fec_.SetFecParameters(fec_params); |
storage = packetizer->GetStorageType(retransmission_settings_); |
red_enabled = RedEnabled(); |