summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-06-23 09:48:38 +0000
committerjstebbins <[email protected]>2011-06-23 09:48:38 +0000
commit631a9de8e479f31495ae4665a5e6796850247769 (patch)
tree6f3bd8d98cb015e6138b3bb1b92ddfb0352fa546 /libhb
parent18a1a18f43a9f90eaae4eb288885e5b19048454d (diff)
libhb: fix progress information for batch scans
Use hb_batch_title_count() since hb_list_count() changes as unreadable titles are removed from the list. Title count needs to be the total number of files being scanned. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4077 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/scan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index afc650911..fe7f0e176 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -177,6 +177,7 @@ static void ScanFunc( void * _data )
p.title_cur = title->index;
p.title_count = data->dvd ? hb_dvd_title_count( data->dvd ) :
data->bd ? hb_bd_title_count( data->bd ) :
+ data->batch ? hb_batch_title_count( data->batch ) :
hb_list_count(data->list_title);
hb_set_state( data->h, &state );
#undef p