NetEq: Update stats earlier in the GetAudioInternal call
This is to prepare for implementation of NetEq muted state, which may cause GetAudioInternal to make an early return just before the call to GetDecision. With this change, the stats are updated in any case. BUG=webrtc:5608 NOTRY=True Review-Url: https://codereview.webrtc.org/1948663002 Cr-Commit-Position: refs/heads/master@{#12671}
This commit is contained in:
committed by
Commit bot
parent
47b17dc59c
commit
60f6ce2a29
@ -815,6 +815,7 @@ int NetEqImpl::GetAudioInternal(AudioFrame* audio_frame) {
|
||||
Operations operation;
|
||||
bool play_dtmf;
|
||||
tick_timer_->Increment();
|
||||
stats_.IncreaseCounter(output_size_samples_, fs_hz_);
|
||||
int return_value = GetDecision(&operation, &packet_list, &dtmf_event,
|
||||
&play_dtmf);
|
||||
if (return_value != 0) {
|
||||
@ -1029,9 +1030,6 @@ int NetEqImpl::GetDecision(Operations* operation,
|
||||
*play_dtmf = false;
|
||||
*operation = kUndefined;
|
||||
|
||||
// Increment time counters.
|
||||
stats_.IncreaseCounter(output_size_samples_, fs_hz_);
|
||||
|
||||
assert(sync_buffer_.get());
|
||||
uint32_t end_timestamp = sync_buffer_->end_timestamp();
|
||||
if (!new_codec_) {
|
||||
|
||||
Reference in New Issue
Block a user