diff options
author | jstebbins <[email protected]> | 2013-03-01 10:14:00 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-03-01 10:14:00 +0000 |
commit | 6039fc23819d1e9e8b5b7440ce6a156a6c46094d (patch) | |
tree | 1d6e2d36af8b8229f98bef66006186ecf58ce100 /test | |
parent | a1a0e0e715d31badf58e3a43c02906b994587c90 (diff) |
Improve scan progress granularity
We were only updating progress after completely processing each title.
Now progress is updated as we generate previews as well.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5276 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c index b3b3f7662..5033baccb 100644 --- a/test/test.c +++ b/test/test.c @@ -585,10 +585,17 @@ static int HandleEvents( hb_handle_t * h ) #define p s.param.scanning case HB_STATE_SCANNING: /* Show what title is currently being scanned */ - fprintf( stderr, "Scanning title %d", p.title_cur ); - if( !titleindex || titlescan ) - fprintf( stderr, " of %d", p.title_count ); - fprintf( stderr, "...\n" ); + if (p.preview_cur) + { + fprintf(stdout, "\rScanning title %d of %d, preview %d, %.2f %%", + p.title_cur, p.title_count, p.preview_cur, 100 * p.progress); + } + else + { + fprintf(stdout, "\rScanning title %d of %d, %.2f %%", + p.title_cur, p.title_count, 100 * p.progress); + } + fflush(stdout); break; #undef p |