Fixed a bug in AnalyzeTask::retrieveCover() function. The local variables should not be static here!
This commit is contained in:
parent
35eb9d5ebb
commit
e1510d8026
@ -35,7 +35,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_LO 6
|
#define VER_LAMEXP_MINOR_LO 6
|
||||||
#define VER_LAMEXP_TYPE RC
|
#define VER_LAMEXP_TYPE RC
|
||||||
#define VER_LAMEXP_PATCH 1
|
#define VER_LAMEXP_PATCH 1
|
||||||
#define VER_LAMEXP_BUILD 2108
|
#define VER_LAMEXP_BUILD 2109
|
||||||
#define VER_LAMEXP_CONFG 2002
|
#define VER_LAMEXP_CONFG 2002
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -526,8 +526,8 @@ bool AnalyzeTask::checkFile_CDDA(QFile &file)
|
|||||||
|
|
||||||
void AnalyzeTask::retrieveCover(AudioFileModel &audioFile, const QString &coverType, const QString &coverData)
|
void AnalyzeTask::retrieveCover(AudioFileModel &audioFile, const QString &coverType, const QString &coverData)
|
||||||
{
|
{
|
||||||
static const QByteArray content = QByteArray::fromBase64(coverData.toLatin1());
|
const QByteArray content = QByteArray::fromBase64(coverData.toLatin1());
|
||||||
static const QString type = m_mimeTypes.value(coverType.toLower());
|
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());
|
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())
|
if(!QImage::fromData(content, type.isEmpty() ? NULL : MUTILS_L1STR(type.toUpper())).isNull())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user