Skip to content
Snippets Groups Projects
Commit 66015aef authored by Eloi Bail's avatar Eloi Bail
Browse files

media: remove useless trace

Warning only if bitrate is effectively changed.

Issue: #78984
Change-Id: I6203d88ad519d448e33aa016941ff92d262427c5
parent 624f699a
Branches
Tags
No related merge requests found
...@@ -344,11 +344,6 @@ VideoRtpSession::adaptBitrate() ...@@ -344,11 +344,6 @@ VideoRtpSession::adaptBitrate()
if (videoBitrateInfo_.videoBitrateCurrent < videoBitrateInfo_.videoBitrateMin) if (videoBitrateInfo_.videoBitrateCurrent < videoBitrateInfo_.videoBitrateMin)
videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateMin; videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateMin;
RING_WARN("packetLostRate=%f >= %f -> decrease bitrate to %d",
packetLostRate,
videoBitrateInfo_.packetLostThreshold,
videoBitrateInfo_.videoBitrateCurrent);
//we force iterative bitrate adaptation //we force iterative bitrate adaptation
videoBitrateInfo_.cptBitrateChecking = 0; videoBitrateInfo_.cptBitrateChecking = 0;
...@@ -367,14 +362,6 @@ VideoRtpSession::adaptBitrate() ...@@ -367,14 +362,6 @@ VideoRtpSession::adaptBitrate()
if (videoBitrateInfo_.videoBitrateCurrent > videoBitrateInfo_.videoBitrateMax) if (videoBitrateInfo_.videoBitrateCurrent > videoBitrateInfo_.videoBitrateMax)
videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateMax; videoBitrateInfo_.videoBitrateCurrent = videoBitrateInfo_.videoBitrateMax;
RING_WARN("[%u/%u] packetLostRate=%f < %f -> try to increase bitrate to %d",
videoBitrateInfo_.cptBitrateChecking,
videoBitrateInfo_.maxBitrateChecking,
packetLostRate,
videoBitrateInfo_.packetLostThreshold,
videoBitrateInfo_.videoBitrateCurrent);
//asynchronous A/V media restart //asynchronous A/V media restart
if (videoBitrateInfo_.videoBitrateCurrent != oldBitrate) if (videoBitrateInfo_.videoBitrateCurrent != oldBitrate)
mediaRestartNeeded = true; mediaRestartNeeded = true;
...@@ -390,6 +377,13 @@ VideoRtpSession::adaptBitrate() ...@@ -390,6 +377,13 @@ VideoRtpSession::adaptBitrate()
if (mediaRestartNeeded) { if (mediaRestartNeeded) {
storeVideoBitrateInfo(); storeVideoBitrateInfo();
const auto& cid = callID_; const auto& cid = callID_;
RING_WARN("[%u/%u] packetLostRate=%f -> change bitrate to %d",
videoBitrateInfo_.cptBitrateChecking,
videoBitrateInfo_.maxBitrateChecking,
packetLostRate,
videoBitrateInfo_.videoBitrateCurrent);
runOnMainThread([cid]{ runOnMainThread([cid]{
if (auto call = Manager::instance().callFactory.getCall(cid)) if (auto call = Manager::instance().callFactory.getCall(cid))
call->restartMediaSender(); call->restartMediaSender();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment