Hard code rtx handling option in NetEq.

This allows NetEq to adapt to late reordered packets which are common when using retransmissions.

Remaining cleanup of the plumbing from WebRTC API will be done in a follow-up cl.

Bug: webrtc:10178
Change-Id: Ia9911eaafdabd3b69441dc089116d79e24f1b2b2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/231002
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34898}
This commit is contained in:
Jakob Ivarsson
2021-09-01 18:19:37 +02:00
committed by WebRTC LUCI CQ
parent 2c41cbae37
commit 7cca016721
3 changed files with 3 additions and 16 deletions

View File

@ -122,7 +122,6 @@ class NetEqImplTest : public ::testing::Test {
NetEqController::Config controller_config;
controller_config.tick_timer = tick_timer_;
controller_config.base_min_delay_ms = config_.min_delay_ms;
controller_config.enable_rtx_handling = config_.enable_rtx_handling;
controller_config.allow_time_stretching = true;
controller_config.max_packets_in_buffer = config_.max_packets_in_buffer;
controller_config.clock = &clock_;
@ -1603,12 +1602,11 @@ TEST_F(NetEqImplTest, InsertEmptyPacket) {
neteq_->InsertEmptyPacket(rtp_header);
}
TEST_F(NetEqImplTest, EnableRtxHandling) {
TEST_F(NetEqImplTest, NotifyControllerOfReorderedPacket) {
using ::testing::AllOf;
using ::testing::Field;
UseNoMocks();
use_mock_neteq_controller_ = true;
config_.enable_rtx_handling = true;
CreateInstance();
EXPECT_CALL(*mock_neteq_controller_, GetDecision(_, _))
.Times(1)
@ -1638,7 +1636,7 @@ TEST_F(NetEqImplTest, EnableRtxHandling) {
*mock_neteq_controller_,
PacketArrived(
/*fs_hz*/ 8000,
/*should_update_stats*/ _,
/*should_update_stats*/ true,
/*info*/
AllOf(
Field(&NetEqController::PacketArrivedInfo::packet_length_samples,