Fixed handling of MediaInfo "point" releases in FileAnalyzer_Task.

This commit is contained in:
LoRd_MuldeR 2018-04-14 23:48:05 +02:00
parent 7b88dd9ceb
commit 6cbb086a1c

View File

@ -379,7 +379,8 @@ const AudioFileModel& AnalyzeTask::parseMediaInfo(const QByteArray &data, AudioF
qWarning("Invalid library identiofier property: \"%s\"", MUTILS_UTF8(identifier)); qWarning("Invalid library identiofier property: \"%s\"", MUTILS_UTF8(identifier));
return audioFile; return audioFile;
} }
if (versionLib.isEmpty() || (!checkVersionStr(versionLib, m_mediaInfoVer / 100U, m_mediaInfoVer % 100U))) const quint32 mediaInfoVer = (m_mediaInfoVer > 9999U) ? m_mediaInfoVer / 10U : m_mediaInfoVer;
if (versionLib.isEmpty() || (!checkVersionStr(versionLib, mediaInfoVer / 100U, mediaInfoVer % 100U)))
{ {
qWarning("Invalid library version property: \"%s\"", MUTILS_UTF8(versionLib)); qWarning("Invalid library version property: \"%s\"", MUTILS_UTF8(versionLib));
return audioFile; return audioFile;