From 43c19661d073c0e27aab37aeb8608eada2842786 Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Sat, 5 Aug 2023 15:41:00 +0200 Subject: [PATCH] [ChooserDefault] Removed a log condition --- src/common/ChooserDefault.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/common/ChooserDefault.cpp b/src/common/ChooserDefault.cpp index 77d5a4040..fcfcf0046 100644 --- a/src/common/ChooserDefault.cpp +++ b/src/common/ChooserDefault.cpp @@ -203,12 +203,6 @@ PLAYLIST::CRepresentation* CRepresentationChooserDefault::GetNextRepresentation( else bandwidth = static_cast(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}; @@ -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;