Do not call OnDecoderTiming before timing values are set.
Wait until first frame is decoded to avoid include zeros in stats. BUG=b/32659204 Review-Url: https://codereview.webrtc.org/2582313002 Cr-Commit-Position: refs/heads/master@{#15752}
This commit is contained in:
@ -92,8 +92,9 @@ class VCMTiming {
|
||||
// certain amount of processing time.
|
||||
bool EnoughTimeToDecode(uint32_t available_processing_time_ms) const;
|
||||
|
||||
// Return current timing information.
|
||||
void GetTimings(int* decode_ms,
|
||||
// Return current timing information. Returns true if the first frame has been
|
||||
// decoded, false otherwise.
|
||||
bool GetTimings(int* decode_ms,
|
||||
int* max_decode_ms,
|
||||
int* current_delay_ms,
|
||||
int* target_delay_ms,
|
||||
|
||||
Reference in New Issue
Block a user