Index: webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h |
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h |
index 62a3533a7591a15fc6c98047dbdfb04fbdff918f..ac4b1e236a0fc45bff517061613dd9d77b0d8ada 100644 |
--- a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h |
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h |
@@ -87,8 +87,10 @@ class FecController final : public Controller { |
const Config::Threshold& threshold, |
const ThresholdInfo& threshold_info) const; |
- bool FecEnablingDecision(const NetworkMetrics& metrics) const; |
- bool FecDisablingDecision(const NetworkMetrics& metrics) const; |
+ bool FecEnablingDecision(const NetworkMetrics& metrics, |
+ const rtc::Optional<float>& packet_loss) const; |
hlundin-webrtc
2016/12/22 10:42:39
I think you can pass an Optional<float> by value.
minyue-webrtc
2016/12/27 13:43:33
I am not sure about the efficiency between ref and
hlundin-webrtc
2017/01/09 14:46:16
I think the argument from ArrayView applies here a
kwiberg-webrtc
2017/01/09 14:55:19
I'm pretty sure Henrik is right (and if I were wri
kwiberg-webrtc
2017/01/10 02:19:28
So, I did the experiment, and it seems like even f
hlundin-webrtc
2017/01/10 08:34:07
Wow! Interesting findings. I stand corrected.
|
+ bool FecDisablingDecision(const NetworkMetrics& metrics, |
+ const rtc::Optional<float>& packet_loss) const; |
hlundin-webrtc
2016/12/22 10:42:39
And here.
|
const Config config_; |
bool fec_enabled_; |