Commit 6ba1e9db authored by Pierre Lespagnol's avatar Pierre Lespagnol
Browse files

autoadapt: fix getPonderateLoss function

The delay could be in nanoseconds

Change-Id: I055b8e5362828f11f8ecb7245363d37f52681afc
parent 486709d4
......@@ -544,9 +544,8 @@ VideoRtpSession::getPonderateLoss(float lastLoss)
histoLoss_.emplace_back(now, lastLoss);
//for(auto& it : histoLoss_)
for (auto it = histoLoss_.begin(); it != histoLoss_.end();) {
auto delay = now - it->first;
auto delay = std::chrono::duration_cast<std::chrono::milliseconds>(now - it->first);
//JAMI_WARN("now - it.first: %ld", std::chrono::duration_cast<std::chrono::milliseconds>(delay));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment