diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2021-06-15 12:57:53 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2021-06-15 12:58:16 +0200 |
commit | bb4a1a5dd4c5dbafb1f6a4c635426570c73a5ba5 (patch) | |
tree | 746d081900eacfb9d0c75215dd10f69d203b6617 /src/sources | |
parent | 6ede09e054bfd6e5a87970559647d516fecdd1ac (diff) |
SoundSourceM4A: Reduce log level for corrupt files
Errors are not critical unless Mixxx might crash. Errors in input
data should never be critical and must be handled.
Diffstat (limited to 'src/sources')
-rw-r--r-- | src/sources/soundsourcem4a.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sources/soundsourcem4a.cpp b/src/sources/soundsourcem4a.cpp index 0578ef1f66..ca3b5ec7c5 100644 --- a/src/sources/soundsourcem4a.cpp +++ b/src/sources/soundsourcem4a.cpp @@ -761,15 +761,15 @@ ReadableSampleFrames SoundSourceM4A::readSampleFramesClamped( // Verify the decoded sample data for consistency const auto channelCount = mixxx::audio::ChannelCount(decFrameInfo.channels); VERIFY_OR_DEBUG_ASSERT(getSignalInfo().getChannelCount() == channelCount) { - kLogger.critical() << "Corrupt or unsupported AAC file:" - << "Unexpected number of channels" - << channelCount << "<>" - << getSignalInfo().getChannelCount(); + kLogger.warning() << "Corrupt or unsupported AAC file:" + << "Unexpected number of channels" + << channelCount << "<>" + << getSignalInfo().getChannelCount(); break; // abort } const auto sampleRate = mixxx::audio::SampleRate(decFrameInfo.samplerate); VERIFY_OR_DEBUG_ASSERT(getSignalInfo().getSampleRate() == sampleRate) { - kLogger.critical() + kLogger.warning() << "Corrupt or unsupported AAC file:" << "Unexpected sample rate" << sampleRate << "<>" << getSignalInfo().getSampleRate(); |