Fix performance bug in CreateSendSideBweSimulationGraph

Bug: webrtc:10097
Change-Id: Ie60619084cd4bd47f5f81d06262ba62631eac12f
Reviewed-on: https://webrtc-review.googlesource.com/c/113423
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25916}
This commit is contained in:
Bjorn Terelius
2018-12-06 12:26:30 +01:00
committed by Commit Bot
parent 628f37a6fe
commit a728c919a4

View File

@ -1097,7 +1097,7 @@ void EventLogAnalyzer::CreateSendSideBweSimulationGraph(Plot* plot) {
return static_cast<int64_t>(rtcp_iterator->log_time_us());
return std::numeric_limits<int64_t>::max();
};
int64_t next_process_time_us_ = clock.TimeInMicroseconds();
int64_t next_process_time_us_ = std::min({NextRtpTime(), NextRtcpTime()});
auto NextProcessTime = [&]() {
if (rtcp_iterator != incoming_rtcp.end() ||