commit | 57574ea577a7306bb93447e7b8d0f11e88c654ce | [log] [tgz] |
---|---|---|
author | Mirko Bonadei <mbonadei@webrtc.org> | Fri Aug 12 13:38:43 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 12 19:54:33 2022 |
tree | f81c665a11922b303558f3f08739e63ccf33dda5 | |
parent | dfb9e8b02c441170a5927266d6defac790e22204 [diff] |
Fix potentially negative Timestamp in logs. This bug was activated by [1] when we started to store the timestamp in the webrtc::Timestamp class (causing an RTC_DCHECK to trigger) but it has been in the codebase for long time (but without using webrtc::Timestamp the RTC_DCHECK was not triggered). Basically, LogStartTime() can be called externally to create a baseline for logging but if that is not the case, LogMessage should call it [2] and initialise the baseline. This was happening in reverse order, causing the first LogMessage to call LogStartTime() after the SystemTimeMillis(), causing a negative time difference that when gets wrapped into webrtc::Timestamp triggers the RTC_DCHECK [3]. [1] - https://webrtc-review.googlesource.com/c/src/+/269249 [2] - https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/rtc_base/logging.h;l=493-497;drc=821b92a66ed661714cc21020b5a045fcd18d0176 [3] - https://source.chromium.org/chromium/chromium/src/+/main:third_party/webrtc/rtc_base/units/unit_base.h;l=122;drc=6dcd43f1e4f2f3ec0bd844cd45e011e9c4d16e38 Bug: b/238157120 Change-Id: I891799316503030c0df5e10e759a61dfc5e1ab3c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271582 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37770}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.