diff options
author | thexai <58434170+thexai@users.noreply.github.com> | 2024-05-06 20:00:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 20:00:31 +0200 |
commit | eea52525f390c1fe63155f4b460309db6480a016 (patch) | |
tree | 30d6b449c0a92a1e8c57ab7ae8eb6522a69e72ad | |
parent | 4313724b4bdff8fd83b47606692f0a641b177cd5 (diff) | |
parent | b2faa77045f0f3eb90291f8121fe81466106dd6c (diff) | |
download | xbmc-eea52525f390c1fe63155f4b460309db6480a016.tar.xz |
Merge pull request #25149 from thexai/mat-logs
PackerMAT: adjust log messages
-rw-r--r-- | xbmc/cores/AudioEngine/Utils/PackerMAT.cpp | 19 |
1 files 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 |