Remove extraneous partial re-initialization of NetEq in the ChannelReceive ctor

These function calls break RAII and are redundant since NetEq and voe::AudioLevel have just been constructed. Remove them to fix an issue where NetEq ignores the min/max delay passed to its constructor.

This will not change default behavior since the defaults in NetEq::Config for max_delay_ms and min_delay_ms are both 0.

Bug: webrtc:15835
Change-Id: I27d4745ac85d6c6948796fe1d6286a0b79429474
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338209
Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41694}
This commit is contained in:
Joachim Reiersen 2024-02-07 11:14:47 -08:00 committed by WebRTC LUCI CQ
parent 74e7ac59b0
commit 68831d28c7

View File

@ -569,13 +569,6 @@ ChannelReceive::ChannelReceive(
network_thread_checker_.Detach();
acm_receiver_.ResetInitialDelay();
acm_receiver_.SetMinimumDelay(0);
acm_receiver_.SetMaximumDelay(0);
acm_receiver_.FlushBuffers();
_outputAudioLevel.ResetLevelFullRange();
rtp_receive_statistics_->EnableRetransmitDetection(remote_ssrc_, true);
RtpRtcpInterface::Configuration configuration;
configuration.clock = clock;