In RtcpTransceiver use TimeDelta instead of raw int to represent time
Bug: webrtc:8239, webrtc:13757 Change-Id: Idda3fe5761665b4b3fedaf2dd1a28bb0119ae1f1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/252287 Reviewed-by: Emil Lundmark <lndmrk@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36094}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
9af4aa7cf4
commit
c2b1bad4c8
@ -48,13 +48,13 @@ bool RtcpTransceiverConfig::Validate() const {
|
||||
RTC_LOG(LS_ERROR) << debug_id << "outgoing transport must be set";
|
||||
return false;
|
||||
}
|
||||
if (initial_report_delay_ms < 0) {
|
||||
RTC_LOG(LS_ERROR) << debug_id << "delay " << initial_report_delay_ms
|
||||
if (initial_report_delay < TimeDelta::Zero()) {
|
||||
RTC_LOG(LS_ERROR) << debug_id << "delay " << initial_report_delay.ms()
|
||||
<< "ms before first report shouldn't be negative.";
|
||||
return false;
|
||||
}
|
||||
if (report_period_ms <= 0) {
|
||||
RTC_LOG(LS_ERROR) << debug_id << "period " << report_period_ms
|
||||
if (report_period <= TimeDelta::Zero()) {
|
||||
RTC_LOG(LS_ERROR) << debug_id << "period " << report_period.ms()
|
||||
<< "ms between reports should be positive.";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user