diff options
author | dynaflash <[email protected]> | 2008-11-30 04:09:33 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-11-30 04:09:33 +0000 |
commit | c43aa11ff657ed6c2f30af3fbac0cdb70cf5bf69 (patch) | |
tree | a2c71e00d272bb91c40c8a33d41a4ad7d4545142 /macosx/Controller.mm | |
parent | 98e27438a5fc1d977c16539f89507ca82dce903f (diff) |
MacGui: Implement variable number of preview frames
- Set in Preferences -> Advanced and defaulted to 10
- Allows for up to 20 previews per title for now.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1972 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index aba746109..b2ddff7a5 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1404,8 +1404,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It { [self writeToActivityLog: "scanning specifically for title: %d", scanTitleNum]; } - - hb_scan( fHandle, [path UTF8String], scanTitleNum ); + /* We use our advance pref to determine how many previews to scan */ + int hb_num_previews = [[[NSUserDefaults standardUserDefaults] objectForKey:@"PreviewsNumber"] intValue]; + hb_scan( fHandle, [path UTF8String], scanTitleNum, hb_num_previews, 1 ); [fSrcDVD2Field setStringValue:@"Scanning new source ..."]; } } @@ -2144,8 +2145,11 @@ fWorkingCount = 0; { [self writeToActivityLog: "scanning specifically for title: %d", scanTitleNum]; } + [self writeToActivityLog: "performNewQueueScan currentQueueEncodeIndex is: %d", currentQueueEncodeIndex]; - hb_scan( fQueueEncodeLibhb, [path UTF8String], scanTitleNum ); + /* We use our advance pref to determine how many previews to scan */ + int hb_num_previews = [[[NSUserDefaults standardUserDefaults] objectForKey:@"PreviewsNumber"] intValue]; + hb_scan( fQueueEncodeLibhb, [path UTF8String], scanTitleNum, hb_num_previews, 0 ); } } |