diff options
author | dynaflash <[email protected]> | 2007-06-28 15:14:33 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-06-28 15:14:33 +0000 |
commit | e2df1a37f062a8ce61a791ff137089fe1b1fef23 (patch) | |
tree | 3c8630c31cd2ea15311454389e121bf1411cbeb0 /macosx/Controller.mm | |
parent | b867f415ef36790ec568e2588f2bed2d9b494ece (diff) |
MacGui: Re-Add Preference to enable 64 bit mp4 files option in the main window.
- This is a reversion to a feature added in 620 that was then taken back out in 621. Due to the breaking of so many target devices, we should error on the side of caution here.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@641 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 1efc3b902..3a6e57408 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -880,7 +880,7 @@ return registrationDictionary; /* We set the largeFileSize (64 bit formatting) variable here to allow for > 4gb files based on the format being mpeg4 and the checkbox being checked *Note: this will break compatibility with some target devices like iPod, etc.!!!!*/ - if ([fDstMpgLargeFileCheck state] == NSOnState) + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AllowLargeFiles"] > 0 && [fDstMpgLargeFileCheck state] == NSOnState) { job->largeFileSize = 1; } @@ -1338,8 +1338,16 @@ return registrationDictionary; _( @"AVC/H.264 Video / AAC Audio" )]; /* We enable the create chapters checkbox here since we are .mp4*/ [fCreateChapterMarkers setEnabled: YES]; - /* We show the Large File (64 bit formatting) checkbox since we are .mp4 */ + /* We show the Large File (64 bit formatting) checkbox since we are .mp4 + if we have enabled the option in the global preferences*/ + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AllowLargeFiles"] > 0) + { [fDstMpgLargeFileCheck setHidden: NO]; + } + else + { + [fDstMpgLargeFileCheck setState: NSOffState]; + } break; case 1: ext = "avi"; |