Skip to content

Commit

Permalink
[ChooserDefault] Removed a log condition
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Aug 13, 2023
1 parent 343d864 commit 43c1966
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/common/ChooserDefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ PLAYLIST::CRepresentation* CRepresentationChooserDefault::GetNextRepresentation(
else
bandwidth = static_cast<uint32_t>(m_bandwidthCurrentLimited * 0.1);

if (isVideoStreamType) // To avoid fill too much the log
{
LOG::Log(LOGDEBUG, "[Repr. chooser] Current average bandwidth: %u bit/s (filtered to %u bit/s)",
m_bandwidthCurrent, bandwidth);
}

CRepresentation* nextRep{nullptr};
int bestScore{-1};

Expand All @@ -234,8 +228,12 @@ PLAYLIST::CRepresentation* CRepresentationChooserDefault::GetNextRepresentation(
if (!nextRep)
nextRep = selector.Lowest(adp);

if (isVideoStreamType)
if (isVideoStreamType) // Only video, to avoid fill too much the log
{
LOG::Log(LOGDEBUG, "[Repr. chooser] Current average bandwidth: %u bit/s (filtered to %u bit/s)",
m_bandwidthCurrent, bandwidth);
LogDetails(currentRep, nextRep);
}

if (m_isForceStartsMaxRes)
m_isForceStartsMaxRes = false;
Expand Down

0 comments on commit 43c1966

Please sign in to comment.