From 334edb802327776d74cbb546507c3f214ba8a784 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 18 Jul 2012 12:27:46 +0000 Subject: More fine grained progress statistics during subtitle scan Make reader compute subtitle scan progress based on timestamps seen and duration instead of chapter marks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4864 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/sync.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libhb/sync.c') diff --git a/libhb/sync.c b/libhb/sync.c index fc01c3b12..73a1071e3 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -1194,6 +1194,14 @@ static void UpdateState( hb_work_object_t * w ) } pv->common->count_frames++; + if (pv->job->indepth_scan) + { + // Progress for indept scan is handled by reader + // pv->common->count_frames is used during indepth_scan + // to find start & end points. + return; + } + if( hb_get_date() > sync->st_dates[3] + 1000 ) { memmove( &sync->st_dates[0], &sync->st_dates[1], @@ -1254,6 +1262,14 @@ static void UpdateSearchState( hb_work_object_t * w, int64_t start ) } pv->common->count_frames++; + if (pv->job->indepth_scan) + { + // Progress for indept scan is handled by reader + // pv->common->count_frames is used during indepth_scan + // to find start & end points. + return; + } + #define p state.param.working state.state = HB_STATE_SEARCHING; if ( pv->job->frame_to_start ) -- cgit v1.2.3