Fixed a bug in AnalyzeTask::retrieveCover() function. The local variables should not be static here!

This commit is contained in:
LoRd_MuldeR 2018-04-09 20:10:03 +02:00
parent 35eb9d5ebb
commit e1510d8026
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 6
#define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 1
#define VER_LAMEXP_BUILD 2108
#define VER_LAMEXP_BUILD 2109
#define VER_LAMEXP_CONFG 2002
///////////////////////////////////////////////////////////////////////////////

View File

@ -526,8 +526,8 @@ bool AnalyzeTask::checkFile_CDDA(QFile &file)
void AnalyzeTask::retrieveCover(AudioFileModel &audioFile, const QString &coverType, const QString &coverData)
{
static const QByteArray content = QByteArray::fromBase64(coverData.toLatin1());
static const QString type = m_mimeTypes.value(coverType.toLower());
const QByteArray content = QByteArray::fromBase64(coverData.toLatin1());
const QString type = m_mimeTypes.value(coverType.toLower());
qDebug("Retrieving cover! (mime=\"%s\", type=\"%s\", len=%d)", MUTILS_L1STR(coverType), MUTILS_L1STR(type), content.size());
if(!QImage::fromData(content, type.isEmpty() ? NULL : MUTILS_L1STR(type.toUpper())).isNull())
{