From e2df1a37f062a8ce61a791ff137089fe1b1fef23 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Thu, 28 Jun 2007 15:14:33 +0000 Subject: 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 --- macosx/Controller.mm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'macosx/Controller.mm') 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"; -- cgit v1.2.3