Fix output period in RtcEventLogImpl
RtcEventLogImpl::StartLogging() was ignoring one of its parameters. This CL fixes the issue. Bug: webrtc:10082 Change-Id: Ie1790c1a7299748dabe99909d967384ad9895635 Reviewed-on: https://webrtc-review.googlesource.com/c/112586 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25858}
This commit is contained in:
parent
6ed4f14418
commit
a4dcb749fb
@ -179,10 +179,11 @@ bool RtcEventLogImpl::StartLogging(std::unique_ptr<RtcEventLogOutput> output,
|
||||
<< "(" << timestamp_us << ", " << utc_time_us << ").";
|
||||
|
||||
// Binding to |this| is safe because |this| outlives the |task_queue_|.
|
||||
auto start = [this, timestamp_us,
|
||||
auto start = [this, output_period_ms, timestamp_us,
|
||||
utc_time_us](std::unique_ptr<RtcEventLogOutput> output) {
|
||||
RTC_DCHECK_RUN_ON(task_queue_.get());
|
||||
RTC_DCHECK(output->IsActive());
|
||||
output_period_ms_ = output_period_ms;
|
||||
event_output_ = std::move(output);
|
||||
num_config_events_written_ = 0;
|
||||
WriteToOutput(event_encoder_->EncodeLogStart(timestamp_us, utc_time_us));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user