Make message about empty frames only a warning

Empty frames don't cause any trouble in general. They only
*might* indicate that something went wrong.
This commit is contained in:
Martchus 2018-11-15 22:09:10 +01:00
parent a775ee61a2
commit f1382bd286
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ void Id3v2Frame::parse(BinaryReader &reader, uint32 version, uint32 maximalSize,
// frame size mustn't be 0
if (m_dataSize <= 0) {
diag.emplace_back(DiagLevel::Critical, "The frame size is 0.", context);
diag.emplace_back(DiagLevel::Warning, "The frame size is 0.", context);
throw InvalidDataException();
}