Fix for bwe with overhead on audio only calls.

BUG=webrtc:6989

Review-Url: https://codereview.webrtc.org/2635893002
Cr-Commit-Position: refs/heads/master@{#16104}
This commit is contained in:
michaelt 2017-01-16 23:55:07 -08:00 committed by Commit bot
parent 04a057b432
commit f4caaab518
3 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,8 @@ AudioSendStream::AudioSendStream(
: worker_queue_(worker_queue),
config_(config),
audio_state_(audio_state),
bitrate_allocator_(bitrate_allocator) {
bitrate_allocator_(bitrate_allocator),
congestion_controller_(congestion_controller) {
LOG(LS_INFO) << "AudioSendStream: " << config_.ToString();
RTC_DCHECK_NE(config_.voe_channel_id, -1);
RTC_DCHECK(audio_state_.get());
@ -258,6 +259,7 @@ const webrtc::AudioSendStream::Config& AudioSendStream::config() const {
void AudioSendStream::SetTransportOverhead(int transport_overhead_per_packet) {
RTC_DCHECK(thread_checker_.CalledOnValidThread());
congestion_controller_->SetTransportOverhead(transport_overhead_per_packet);
channel_proxy_->SetTransportOverhead(transport_overhead_per_packet);
}

View File

@ -76,6 +76,7 @@ class AudioSendStream final : public webrtc::AudioSendStream,
std::unique_ptr<voe::ChannelProxy> channel_proxy_;
BitrateAllocator* const bitrate_allocator_;
CongestionController* const congestion_controller_;
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
};

View File

@ -43,7 +43,8 @@ class PacketInfoComparator {
TransportFeedbackAdapter::TransportFeedbackAdapter(
Clock* clock,
BitrateController* bitrate_controller)
: send_time_history_(clock, kSendTimeHistoryWindowMs),
: transport_overhead_bytes_per_packet_(0),
send_time_history_(clock, kSendTimeHistoryWindowMs),
clock_(clock),
current_offset_ms_(kNoTimestamp),
last_timestamp_us_(kNoTimestamp),