Don't print warning for tasks running 1ms earlier than planned.

Bug: webrtc:12889
Change-Id: I33faa986130f2d7ae049466c303ef29b643d97ca
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268920
Commit-Queue: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37585}
This commit is contained in:
Byoungchan Lee 2022-07-21 17:21:45 +09:00 committed by WebRTC LUCI CQ
parent 5afcc9afae
commit e044ec572a

View File

@ -774,10 +774,14 @@ void ModuleRtpRtcpImpl2::MaybeSendRtcpAtOrAfterTimestamp(
return;
}
RTC_DLOG(LS_WARNING)
<< "BUGBUG: Task queue scheduled delayed call too early.";
TimeDelta delta = execution_time - now;
// TaskQueue may run task 1ms earlier, so don't print warning if in this case.
if (delta > TimeDelta::Millis(1)) {
RTC_DLOG(LS_WARNING) << "BUGBUG: Task queue scheduled delayed call "
<< delta << " too early.";
}
ScheduleMaybeSendRtcpAtOrAfterTimestamp(execution_time, execution_time - now);
ScheduleMaybeSendRtcpAtOrAfterTimestamp(execution_time, delta);
}
void ModuleRtpRtcpImpl2::ScheduleRtcpSendEvaluation(TimeDelta duration) {