Index: webrtc/modules/rtp_rtcp/source/producer_fec.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/producer_fec.cc b/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
index c7ea19db5862f4ce6b97184548f900bef54aa154..69a28ed4dbcc8ce68e51610c0c2b5ae34c0d6805 100644 |
--- a/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
+++ b/webrtc/modules/rtp_rtcp/source/producer_fec.cc |
@@ -157,11 +157,12 @@ |
(ExcessOverheadBelowMax() && MinimumMediaPacketsReached()))) { |
assert(num_first_partition_ <= |
static_cast<int>(ForwardErrorCorrection::kMaxMediaPackets)); |
- // TODO(pbos): Consider whether unequal protection should be enabled or not, |
- // it is currently always disabled. |
- int ret = fec_->GenerateFEC(media_packets_fec_, params_.fec_rate, |
- num_first_partition_, false, |
- params_.fec_mask_type, &fec_packets_); |
+ int ret = fec_->GenerateFEC(media_packets_fec_, |
+ params_.fec_rate, |
+ num_first_partition_, |
+ params_.use_uep_protection, |
+ params_.fec_mask_type, |
+ &fec_packets_); |
if (fec_packets_.empty()) { |
num_frames_ = 0; |
DeletePackets(); |