forked from mia/Aegisub
ffms2 indexer: fix a dumb display bug in the progress updating
Originally committed to SVN as r2346.
This commit is contained in:
parent
0838d3afe4
commit
5b3cf56687
1 changed files with 4 additions and 2 deletions
|
@ -107,7 +107,6 @@ FFMSIndexApp::FFMSIndexApp (int argc, char *argv[]) {
|
||||||
|
|
||||||
FFMSIndexApp::~FFMSIndexApp () {
|
FFMSIndexApp::~FFMSIndexApp () {
|
||||||
FFMS_DestroyFrameIndex(Index);
|
FFMS_DestroyFrameIndex(Index);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -138,7 +137,10 @@ void FFMSIndexApp::DoIndexing () {
|
||||||
throw Err;
|
throw Err;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "\b\b\b100%" << std::endl << "Writing index... ";
|
if (Progress != 100)
|
||||||
|
std::cout << "\b\b\b100%";
|
||||||
|
|
||||||
|
std::cout << std::endl << "Writing index... ";
|
||||||
|
|
||||||
if (FFMS_WriteIndex(CacheFile.c_str(), Index, FFMSErrMsg, MsgSize)) {
|
if (FFMS_WriteIndex(CacheFile.c_str(), Index, FFMSErrMsg, MsgSize)) {
|
||||||
std::string Err = "Error writing index: ";
|
std::string Err = "Error writing index: ";
|
||||||
|
|
Loading…
Reference in a new issue