Log timestamps when old frames are delivered.

BUG=webrtc:4994
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1335993003

Cr-Commit-Position: refs/heads/master@{#9928}
This commit is contained in:
pbos
2015-09-14 06:07:26 -07:00
committed by Commit bot
parent 847855b865
commit 36d619b01e

View File

@ -101,7 +101,10 @@ void VideoCaptureInput::IncomingCapturedFrame(const VideoFrame& video_frame) {
CriticalSectionScoped cs(capture_cs_.get()); CriticalSectionScoped cs(capture_cs_.get());
if (incoming_frame.ntp_time_ms() <= last_captured_timestamp_) { if (incoming_frame.ntp_time_ms() <= last_captured_timestamp_) {
// We don't allow the same capture time for two frames, drop this one. // We don't allow the same capture time for two frames, drop this one.
LOG(LS_WARNING) << "Same/old NTP timestamp for incoming frame. Dropping."; LOG(LS_WARNING) << "Same/old NTP timestamp ("
<< incoming_frame.ntp_time_ms()
<< " <= " << last_captured_timestamp_
<< ") for incoming frame. Dropping.";
return; return;
} }