Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -544,9 +544,8 @@ VideoRtpSession::getPonderateLoss(float lastLoss) ...@@ -544,9 +544,8 @@ VideoRtpSession::getPonderateLoss(float lastLoss)
histoLoss_.emplace_back(now, lastLoss); histoLoss_.emplace_back(now, lastLoss);
//for(auto& it : histoLoss_)
for (auto it = histoLoss_.begin(); it != histoLoss_.end();) { 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)); //JAMI_WARN("now - it.first: %ld", std::chrono::duration_cast<std::chrono::milliseconds>(delay));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment