From 6039fc23819d1e9e8b5b7440ce6a156a6c46094d Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 1 Mar 2013 10:14:00 +0000 Subject: 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 --- test/test.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.3