End NetEq simulation if there are no more packets to decode.
Bug: b/133217334 Change-Id: Ibd696011f390ef60a6ac44e603ab4380ae5e759a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/138060 Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Reviewed-by: Ivo Creusen <ivoc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28026}
This commit is contained in:
committed by
Commit Bot
parent
4ed7e511f6
commit
9ce451a03f
@ -252,7 +252,10 @@ NetEqTest::SimulationStepResult NetEqTest::RunToNextGetAudio() {
|
||||
}
|
||||
}
|
||||
prev_lifetime_stats_ = lifetime_stats;
|
||||
result.is_simulation_finished = input_->ended();
|
||||
const bool no_more_packets_to_decode =
|
||||
!input_->NextPacketTime() && !operations_state.next_packet_available;
|
||||
result.is_simulation_finished =
|
||||
no_more_packets_to_decode || input_->ended();
|
||||
prev_ops_state_ = operations_state;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user