Chromium Code Reviews| Index: webrtc/modules/rtp_rtcp/source/rtp_sender_video.h |
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h |
| index f69b8e370a56843a98dac597ebad5519183ed59f..16c49a0f566f66f097386677455c27564b1a57d1 100644 |
| --- a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h |
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h |
| @@ -60,13 +60,13 @@ class RTPSenderVideo { |
| void SetVideoCodecType(RtpVideoCodecTypes type); |
| // FEC |
| - void SetGenericFECStatus(bool enable, |
| - uint8_t payload_type_red, |
| - uint8_t payload_type_fec); |
| + void SetUlpfecConfig(bool enabled, |
| + int red_payload_type, |
| + int ulpfec_payload_type); |
| - void GenericFECStatus(bool* enable, |
| - uint8_t* payload_type_red, |
| - uint8_t* payload_type_fec) const; |
| + void UlpfecConfig(bool* enabled, |
|
stefan-webrtc
2016/10/31 09:33:16
Perhaps GetUlpfecConfig
brandtr
2016/10/31 12:47:03
Done.
|
| + int* red_payload_type, |
| + int* ulpfec_payload_type) const; |
| void SetFecParameters(const FecProtectionParams* delta_params, |
| const FecProtectionParams* key_params); |
| @@ -98,8 +98,8 @@ class RTPSenderVideo { |
| // FEC |
| bool fec_enabled_ GUARDED_BY(crit_) = false; |
| - int8_t red_payload_type_ GUARDED_BY(crit_) = 0; |
| - int8_t fec_payload_type_ GUARDED_BY(crit_) = 0; |
| + int red_payload_type_ GUARDED_BY(crit_) = -1; |
| + int fec_payload_type_ GUARDED_BY(crit_) = -1; |
|
stefan-webrtc
2016/10/31 09:33:16
I'd prefer moving these initializations to the ini
brandtr
2016/10/31 12:47:03
Done!
This was originally my plan, but then I saw
danilchap
2016/10/31 13:22:00
just curious, what are benefits of initializer lis
stefan-webrtc
2016/11/03 13:52:25
We discussed this a lot at some point, and I think
|
| FecProtectionParams delta_fec_params_ GUARDED_BY(crit_) = FecProtectionParams{ |
| 0, 1, kFecMaskRandom}; |
| FecProtectionParams key_fec_params_ GUARDED_BY(crit_) = FecProtectionParams{ |