Index: webrtc/media/engine/webrtcvoiceengine.h |
diff --git a/webrtc/media/engine/webrtcvoiceengine.h b/webrtc/media/engine/webrtcvoiceengine.h |
index c9798cbc9567a5f32193a38661c9f80df340e390..0ec5e2751281d86af4367be35ae9584b3a9f7ce2 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.h |
+++ b/webrtc/media/engine/webrtcvoiceengine.h |
@@ -218,7 +218,7 @@ class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, |
bool SetSendCodecs(int channel); |
void SetNack(int channel, bool nack_enabled); |
bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec); |
- bool SetMaxSendBandwidth(int bps); |
+ bool SetMaxSendBitrate(rtc::Optional<int> bps); |
bool SetLocalSource(uint32_t ssrc, AudioSource* source); |
bool MuteStream(uint32_t ssrc, bool mute); |
@@ -232,7 +232,7 @@ class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, |
bool IsDefaultRecvStream(uint32_t ssrc) { |
return default_recv_ssrc_ == static_cast<int64_t>(ssrc); |
} |
- bool SetSendBitrateInternal(int bps); |
+ bool SetSendBitrateInternal(rtc::Optional<int> bps); |
bool HasSendCodec() const { |
return send_codec_spec_.codec_inst.pltype != -1; |
} |
@@ -241,8 +241,7 @@ class WebRtcVoiceMediaChannel final : public VoiceMediaChannel, |
WebRtcVoiceEngine* const engine_ = nullptr; |
std::vector<AudioCodec> recv_codecs_; |
- bool send_bitrate_setting_ = false; |
- int send_bitrate_bps_ = 0; |
+ rtc::Optional<int> send_bitrate_bps_; |
AudioOptions options_; |
rtc::Optional<int> dtmf_payload_type_; |
bool desired_playout_ = false; |