diff options
Diffstat (limited to 'logging/rtc_event_log/events/rtc_event_video_send_stream_config.h')
-rw-r--r-- | logging/rtc_event_log/events/rtc_event_video_send_stream_config.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/logging/rtc_event_log/events/rtc_event_video_send_stream_config.h b/logging/rtc_event_log/events/rtc_event_video_send_stream_config.h index cf95afc4d8..e72e75e49d 100644 --- a/logging/rtc_event_log/events/rtc_event_video_send_stream_config.h +++ b/logging/rtc_event_log/events/rtc_event_video_send_stream_config.h @@ -14,6 +14,7 @@ #include <memory> #include "api/rtc_event_log/rtc_event.h" +#include "api/units/timestamp.h" #include "logging/rtc_event_log/rtc_stream_config.h" namespace webrtc { @@ -41,13 +42,13 @@ class RtcEventVideoSendStreamConfig final : public RtcEvent { struct LoggedVideoSendConfig { LoggedVideoSendConfig() = default; - LoggedVideoSendConfig(int64_t timestamp_us, const rtclog::StreamConfig config) - : timestamp_us(timestamp_us), config(config) {} + LoggedVideoSendConfig(Timestamp timestamp, const rtclog::StreamConfig config) + : timestamp(timestamp), config(config) {} - int64_t log_time_us() const { return timestamp_us; } - int64_t log_time_ms() const { return timestamp_us / 1000; } + int64_t log_time_us() const { return timestamp.us(); } + int64_t log_time_ms() const { return timestamp.ms(); } - int64_t timestamp_us; + Timestamp timestamp = Timestamp::MinusInfinity(); rtclog::StreamConfig config; }; } // namespace webrtc |