From b2faa77045f0f3eb90291f8121fe81466106dd6c Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Mon, 6 May 2024 15:59:52 +0200 Subject: PackerMAT: adjust log messages --- xbmc/cores/AudioEngine/Utils/PackerMAT.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/xbmc/cores/AudioEngine/Utils/PackerMAT.cpp b/xbmc/cores/AudioEngine/Utils/PackerMAT.cpp index d940902981..29ee54ea92 100644 --- a/xbmc/cores/AudioEngine/Utils/PackerMAT.cpp +++ b/xbmc/cores/AudioEngine/Utils/PackerMAT.cpp @@ -86,9 +86,10 @@ bool CPackerMAT::PackTrueHD(const uint8_t* data, int size) { if (m_state.outputTimingValid && (info.outputTiming != m_state.outputTiming)) { - CLog::LogF(LOGWARNING, - "detected a stream discontinuity -> output timing expected: {}, found: {}", - m_state.outputTiming, info.outputTiming); + CLog::Log(LOGWARNING, + "CPackerMAT::PackTrueHD: detected a stream discontinuity -> output timing " + "expected: {}, found: {}", + m_state.outputTiming, info.outputTiming); } m_state.outputTiming = info.outputTiming; m_state.outputTimingValid = true; @@ -241,9 +242,10 @@ void CPackerMAT::WritePadding() if (!m_logPadding && m_state.padding > MAT_BUFFER_SIZE / 2) { m_logPadding = true; - CLog::LogF(LOGWARNING, - "a large padding block of {} bytes is required due to unusual timestamps", - m_state.padding); + CLog::Log(LOGWARNING, + "CPackerMAT::WritePadding: a large padding block of {} bytes is required due to " + "unusual timestamps", + m_state.padding); } else if (m_logPadding && m_state.padding < MAT_BUFFER_SIZE / 2) m_logPadding = false; @@ -350,11 +352,6 @@ void CPackerMAT::FlushPacket() // push MAT packet to output queue m_outputQueue.emplace_back(std::move(m_buffer)); - if (m_outputQueue.size() > 1) - CLog::LogF(LOGDEBUG, - "several MAT packets generated in a row, the size of the output queue is {}", - m_outputQueue.size()); - // we expect 24 frames per MAT frame, so calculate an offset from that // this is done after delivery, because it modifies the duration of the frame, // eg. the start of the next frame -- cgit v1.2.3