From a99665226a9563c9ee8fb2666017e52ef2580f7f Mon Sep 17 00:00:00 2001 From: Ivo Creusen Date: Fri, 15 Dec 2017 13:56:47 +0100 Subject: [PATCH] Make delay stat optional. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The delay_ms stat in AudioprocessStats should be an Optional, because its value is not always computed. This CL changes it to an optional. Bug: webrtc:8569 Change-Id: I42fd7a86b975c766b685444bf1829511f790da2a Reviewed-on: https://webrtc-review.googlesource.com/33320 Reviewed-by: Per Ã…hgren Commit-Queue: Ivo Creusen Cr-Commit-Position: refs/heads/master@{#21293} --- modules/audio_processing/include/audio_processing_statistics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_processing/include/audio_processing_statistics.h b/modules/audio_processing/include/audio_processing_statistics.h index 83c9d9932f..05c59054b3 100644 --- a/modules/audio_processing/include/audio_processing_statistics.h +++ b/modules/audio_processing/include/audio_processing_statistics.h @@ -48,7 +48,7 @@ struct AudioProcessingStats { // The instantaneous delay estimate produced in the AEC. The unit is in // milliseconds and the value is the instantaneous value at the time of the // call to |GetStatistics()|. - int delay_ms; + rtc::Optional delay_ms; }; } // namespace webrtc