summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-04-10 17:21:56 +0000
committerdynaflash <[email protected]>2007-04-10 17:21:56 +0000
commit8777001204cb0710f573363f841759d8db69b076 (patch)
tree9fed51653231d467f51a20c8e6ff37c2dad852bc
parent9873ff7501966ade0d6a63e6b5af2baa3ea5959e (diff)
MacGui: Framerate
- Deprecate "Same as source" - Use "23.976" as default - All presets previously using "Same as source" will automatically use "23.976" instead without modification git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@492 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm15
1 files changed, 12 insertions, 3 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 51a712a0b..a22128f7f 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -179,13 +179,16 @@ static int FormatSettings[3][4] =
/* Video framerate */
[fVidRatePopUp removeAllItems];
- [fVidRatePopUp addItemWithTitle: _( @"Same as source" )];
+ /* Lets deprecate Same as Source for now, will leave it
+ here but commented out in case we change our minds */
+ //[fVidRatePopUp addItemWithTitle: _( @"Same as source" )];
for( int i = 0; i < hb_video_rates_count; i++ )
{
[fVidRatePopUp addItemWithTitle:
[NSString stringWithCString: hb_video_rates[i].string]];
}
- [fVidRatePopUp selectItemAtIndex: 0];
+ /* we default to the most common film framerate */
+ [fVidRatePopUp selectItemWithTitle: @"23.976"];
/* Picture Settings */
[fPicLabelPAROutp setStringValue: @""];
@@ -2015,8 +2018,14 @@ the user is using "Custom" settings by determining the sender*/
[self VideoMatrixChanged: NULL];
/* Video framerate */
+ if ([[chosenPreset objectForKey:@"VideoFramerate"] isEqualToString: @"Same as source"])
+ {
+ [fVidRatePopUp selectItemWithTitle: @"23.976"];
+ }
+ else
+ {
[fVidRatePopUp selectItemWithTitle: [NSString stringWithFormat:[chosenPreset valueForKey:@"VideoFramerate"]]];
-
+ }
/* GrayScale */
[fVidGrayscaleCheck setState:[[chosenPreset objectForKey:@"VideoGrayScale"] intValue]];