diff --git a/src/sources/soundsourcemp3.cpp b/src/sources/soundsourcemp3.cpp index 6c9f5283538..140668724e1 100644 --- a/src/sources/soundsourcemp3.cpp +++ b/src/sources/soundsourcemp3.cpp @@ -152,7 +152,9 @@ bool decodeFrameHeader( logFrameHeader(kLogger.info(), *pMadHeader); return false; } - DEBUG_ASSERT(pMadStream->error == MAD_ERROR_NONE); + // Note: Recoverable errors are maintained until a frame has been successfully decoded + // Kurt Roeckx's length-check.patch applied on Debian fixes that. + DEBUG_ASSERT(!hasUnrecoverableError(pMadStream)); return true; }