summaryrefslogtreecommitdiff
path: root/rMD-exp/src/load_cache.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-10-30 06:09:18 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-10-30 06:09:18 +0000
commit165b32c9bb99baca19dfe9540fc5276bd41f2df0 (patch)
tree41a61e10bb7ad09a0eea8f8e8fd26357064745cb /rMD-exp/src/load_cache.c
parent19bcfae70330dc23f8aa7c5e01a786fd9e7a1e75 (diff)
string formatting during post-encoding
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@132 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/load_cache.c')
-rw-r--r--rMD-exp/src/load_cache.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rMD-exp/src/load_cache.c b/rMD-exp/src/load_cache.c
index 9ef75a6..cd09956 100644
--- a/rMD-exp/src/load_cache.c
+++ b/rMD-exp/src/load_cache.c
@@ -96,9 +96,10 @@ void *LoadCache(void *pdata){
else if(gzread(ifp,frame.header,sizeof(FrameHeader))==sizeof(FrameHeader)){
//sync
missing_frames+=frame.header->current_total-(extra_frames+frame.header->frameno);
+ fprintf(stdout,"\r[%d%%] ",
+ ((frame.header->frameno+extra_frames)*100)/frames_total);
- fprintf(stdout,"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
- "%d of %d",frame.header->frameno+extra_frames,frames_total);fflush(stdout);
+ fflush(stdout);
if( (frame.header->Ynum<=pow(divisor,2)) &&
(frame.header->Unum<=pow(divisor/2,2)) &&
(frame.header->Vnum<=pow(divisor/2,2)) &&
@@ -158,7 +159,7 @@ void *LoadCache(void *pdata){
}
}
}
-
+ fprintf(stdout,"\n");
CLEAR_FRAME(&frame)
free(sound_data);
gzclose(ifp);
© All Rights Reserved