From e1510d8026ee5e9e5c104e425ce4fcc947b1a543 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 9 Apr 2018 20:10:03 +0200 Subject: [PATCH] Fixed a bug in AnalyzeTask::retrieveCover() function. The local variables should not be static here! --- src/Config.h | 2 +- src/Thread_FileAnalyzer_Task.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.h b/src/Config.h index fc33fca3..ecbf0d1d 100644 --- a/src/Config.h +++ b/src/Config.h @@ -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 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Thread_FileAnalyzer_Task.cpp b/src/Thread_FileAnalyzer_Task.cpp index cd9aa8d0..9833bc99 100644 --- a/src/Thread_FileAnalyzer_Task.cpp +++ b/src/Thread_FileAnalyzer_Task.cpp @@ -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()) {