From 2e3004da843b88a0f1c72a58df7a3137c220a74b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 2 May 2023 08:42:24 +0200 Subject: [PATCH] Fix too strict debug assertion --- src/sources/soundsourcemp3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }