Fixed AAC progress indicator.

This commit is contained in:
LoRd_MuldeR 2018-06-03 16:16:10 +02:00
parent 436c251c4e
commit 2158146fe1

View File

@ -61,7 +61,7 @@ bool AACDecoder::decode(const QString &sourceFile, const QString &outputFile, QA
} }
int prevProgress = -1; int prevProgress = -1;
QRegExp regExp("\\b(\\d+)%\\s+decoding", Qt::CaseInsensitive); QRegExp regExp("\\[(\\d+)%\\]\\s*decoding", Qt::CaseInsensitive); //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)
{ {