diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-06-11 00:03:40 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-06-11 00:27:11 +0200 |
commit | 256db1dcf6095c1de9b3da4d87e96f6cfa1d3841 (patch) | |
tree | 5662b9fc2ef7bbe26d7ecff191b580596dd11761 /src/sources/soundsourcem4a.cpp | |
parent | c8f682fe5e49d673d5fd5704ead0aab79a3ca8e9 (diff) |
Improve code formatting
Diffstat (limited to 'src/sources/soundsourcem4a.cpp')
-rw-r--r-- | src/sources/soundsourcem4a.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sources/soundsourcem4a.cpp b/src/sources/soundsourcem4a.cpp index 9d2608c314..c243b465a2 100644 --- a/src/sources/soundsourcem4a.cpp +++ b/src/sources/soundsourcem4a.cpp @@ -696,12 +696,9 @@ ReadableSampleFrames SoundSourceM4A::readSampleFramesClamped( m_inputBufferOffset = 0; continue; } else { - if (faad2::FrameError(decFrameInfo.error) == - faad2::FrameError:: - InvalidNumberOfChannels || - faad2::FrameError(decFrameInfo.error) == - faad2::FrameError:: - InvalidChannelConfiguration) { + const auto frameError = faad2::FrameError(decFrameInfo.error); + if (frameError == faad2::FrameError::InvalidNumberOfChannels || + frameError == faad2::FrameError::InvalidChannelConfiguration) { kLogger.debug() << "Reopening decoder after AAC decoding error" << decFrameInfo.error |