Fixed FAAD progress parsing.

This commit is contained in:
LoRd_MuldeR 2017-12-16 21:32:05 +01:00
parent 818dd1e91b
commit 107eea1c9f
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 6 #define VER_LAMEXP_MINOR_LO 6
#define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 3 #define VER_LAMEXP_PATCH 3
#define VER_LAMEXP_BUILD 2080 #define VER_LAMEXP_BUILD 2081
#define VER_LAMEXP_CONFG 2002 #define VER_LAMEXP_CONFG 2002
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -61,7 +61,7 @@ bool AACDecoder::decode(const QString &sourceFile, const QString &outputFile, QA
} }
int prevProgress = -1; int prevProgress = -1;
QRegExp regExp("\\[(\\d+)%\\]\\s+decoding\\s+"); QRegExp regExp("\\b(\\d+)%\\s+decoding", Qt::CaseInsensitive);
const result_t result = awaitProcess(process, abortFlag, [this, &prevProgress, &regExp](const QString &text) const result_t result = awaitProcess(process, abortFlag, [this, &prevProgress, &regExp](const QString &text)
{ {