Update 100 % percentage correctly
This commit is contained in:
parent
c611543e30
commit
e5c93e8293
|
@ -1836,7 +1836,7 @@ nonRewriteCalculations:
|
|||
}
|
||||
}
|
||||
|
||||
updatePercentage(100.0);
|
||||
updatePercentage(1.0);
|
||||
|
||||
// flush output stream
|
||||
outputStream.flush();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -854,7 +854,7 @@ calculatePadding:
|
|||
}
|
||||
}
|
||||
|
||||
updatePercentage(100.0);
|
||||
updatePercentage(1.0);
|
||||
|
||||
// flush output stream
|
||||
outputStream.flush();
|
||||
|
|
Loading…
Reference in New Issue