Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: video/rtp_video_stream_receiver.cc

Issue 3019453002: Delete member VideoReceiveStream::Config::Rtp::ulpfec. (Closed)
Patch Set: Added DCHECK. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « video/replay.cc ('k') | video/video_quality_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: video/rtp_video_stream_receiver.cc
diff --git a/video/rtp_video_stream_receiver.cc b/video/rtp_video_stream_receiver.cc
index 8611721aac375b2ffab53e204a26e63f14874b72..2eb09b2450df9e4a45d678662b27a8ae6a4735c8 100644
--- a/video/rtp_video_stream_receiver.cc
+++ b/video/rtp_video_stream_receiver.cc
@@ -154,7 +154,7 @@ RtpVideoStreamReceiver::RtpVideoStreamReceiver(
VideoCodec ulpfec_codec = {};
ulpfec_codec.codecType = kVideoCodecULPFEC;
strncpy(ulpfec_codec.plName, "ulpfec", sizeof(ulpfec_codec.plName));
- ulpfec_codec.plType = config_.rtp.ulpfec.ulpfec_payload_type;
+ ulpfec_codec.plType = config_.rtp.ulpfec_payload_type;
RTC_CHECK(AddReceiveCodec(ulpfec_codec));
}
@@ -162,7 +162,7 @@ RtpVideoStreamReceiver::RtpVideoStreamReceiver(
VideoCodec red_codec = {};
red_codec.codecType = kVideoCodecRED;
strncpy(red_codec.plName, "red", sizeof(red_codec.plName));
- red_codec.plType = config_.rtp.ulpfec.red_payload_type;
+ red_codec.plType = config_.rtp.red_payload_type;
RTC_CHECK(AddReceiveCodec(red_codec));
}
@@ -368,11 +368,11 @@ int32_t RtpVideoStreamReceiver::RequestKeyFrame() {
}
bool RtpVideoStreamReceiver::IsUlpfecEnabled() const {
- return config_.rtp.ulpfec.ulpfec_payload_type != -1;
+ return config_.rtp.ulpfec_payload_type != -1;
}
bool RtpVideoStreamReceiver::IsRedEnabled() const {
- return config_.rtp.ulpfec.red_payload_type != -1;
+ return config_.rtp.red_payload_type != -1;
}
bool RtpVideoStreamReceiver::IsRetransmissionsEnabled() const {
« no previous file with comments | « video/replay.cc ('k') | video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698