Do *not* try to check the MediaInfo in XML output, if we are using an "external" MediaInfo binary. In that case the expected MediaInfo version is UINT_MAX and the check would always fail.
This commit is contained in:
parent
3141fc6b58
commit
47135b696a
@ -35,7 +35,7 @@
|
||||
#define VER_LAMEXP_MINOR_LO 6
|
||||
#define VER_LAMEXP_TYPE Final
|
||||
#define VER_LAMEXP_PATCH 1
|
||||
#define VER_LAMEXP_BUILD 2134
|
||||
#define VER_LAMEXP_BUILD 2137
|
||||
#define VER_LAMEXP_CONFG 2134
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -377,10 +377,21 @@ const AudioFileModel& AnalyzeTask::parseMediaInfo(const QByteArray &data, AudioF
|
||||
qWarning("Invalid library identiofier property: \"%s\"", MUTILS_UTF8(identifier));
|
||||
return audioFile;
|
||||
}
|
||||
const quint32 mediaInfoVer = (m_mediaInfoVer > 9999U) ? m_mediaInfoVer / 10U : m_mediaInfoVer;
|
||||
if (versionLib.isEmpty() || (!checkVersionStr(versionLib, mediaInfoVer / 100U, mediaInfoVer % 100U)))
|
||||
if (!versionLib.isEmpty())
|
||||
{
|
||||
qWarning("Invalid library version property: \"%s\"", MUTILS_UTF8(versionLib));
|
||||
if (m_mediaInfoVer != UINT_MAX)
|
||||
{
|
||||
const quint32 mediaInfoVer = (m_mediaInfoVer > 9999U) ? m_mediaInfoVer / 10U : m_mediaInfoVer;
|
||||
if (!checkVersionStr(versionLib, mediaInfoVer / 100U, mediaInfoVer % 100U))
|
||||
{
|
||||
qWarning("Invalid library version property: \"%s\"", MUTILS_UTF8(versionLib));
|
||||
return audioFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
qWarning("Library version property not found!");
|
||||
return audioFile;
|
||||
}
|
||||
while (findNextElement(QLatin1String("Media"), xmlStream))
|
||||
|
Loading…
Reference in New Issue
Block a user