| Index: webrtc/video/video_capture_input.cc
|
| diff --git a/webrtc/video/video_capture_input.cc b/webrtc/video/video_capture_input.cc
|
| index 1fbadff14e87020415b299daad467c63a140388c..456e99c526c1193b401f6da75fbebf8d8e1245fb 100644
|
| --- a/webrtc/video/video_capture_input.cc
|
| +++ b/webrtc/video/video_capture_input.cc
|
| @@ -147,8 +147,10 @@ bool VideoCaptureInput::CaptureProcess() {
|
| }
|
| // Update the overuse detector with the duration.
|
| if (encode_start_time != -1) {
|
| - overuse_detector_->FrameEncoded(
|
| + int encode_time_ms = static_cast<int>(
|
| Clock::GetRealTimeClock()->TimeInMilliseconds() - encode_start_time);
|
| + overuse_detector_->FrameEncoded(encode_time_ms);
|
| + stats_proxy_->OnEncodedFrame(encode_time_ms);
|
| }
|
| }
|
| // We're done!
|
|
|