Update 100 % percentage correctly

This commit is contained in:
Martchus 2017-10-30 08:21:17 +01:00
parent c611543e30
commit e5c93e8293
3 changed files with 3 additions and 3 deletions

View File

@ -1836,7 +1836,7 @@ nonRewriteCalculations:
}
}
updatePercentage(100.0);
updatePercentage(1.0);
// flush output stream
outputStream.flush();

View File

@ -1823,7 +1823,7 @@ void MediaFileInfo::makeMp3File()
backupStream.seekg(streamOffset);
CopyHelper<0x4000> copyHelper;
copyHelper.callbackCopy(backupStream, stream(), mediaDataSize, bind(&StatusProvider::isAborted, this), bind(&StatusProvider::updatePercentage, this, _1));
updatePercentage(100.0);
updatePercentage(1.0);
} else {
// just skip actual stream data
outputStream.seekp(mediaDataSize, ios_base::cur);

View File

@ -854,7 +854,7 @@ calculatePadding:
}
}
updatePercentage(100.0);
updatePercentage(1.0);
// flush output stream
outputStream.flush();