diff options
author | dynaflash <[email protected]> | 2007-08-07 04:24:50 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-08-07 04:24:50 +0000 |
commit | dbdcd68514a6a447f5551458e57caf34cfa317da (patch) | |
tree | 3b6730183cf541393b7460b23d3be7ca709ab0cb | |
parent | e886a18d2ea3b217c6eb634acaf7091b82754edc (diff) |
MacGui: Add Descriptive Tags to Frame Rate Drop Down
- 23.976 (NTSC Film)
- 25 (PAL Film/Video)
- 29.97 (NTSC Video)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@790 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.mm | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index bd5452296..0ec7b1eac 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -234,8 +234,26 @@ static NSString* ChooseSourceIdentifier = @"Choose Source Item Identifie [fVidRatePopUp addItemWithTitle: _( @"Same as source" )]; for( int i = 0; i < hb_video_rates_count; i++ ) { - [fVidRatePopUp addItemWithTitle: - [NSString stringWithCString: hb_video_rates[i].string]]; + if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%.3f",23.976]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (NTSC Film)"]]; + } + else if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%d",25]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (PAL Film/Video)"]]; + } + else if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%.2f",29.97]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (NTSC Video)"]]; + } + else + { + [fVidRatePopUp addItemWithTitle: + [NSString stringWithCString: hb_video_rates[i].string]]; + } } [fVidRatePopUp selectItemAtIndex: 0]; @@ -250,7 +268,8 @@ static NSString* ChooseSourceIdentifier = @"Choose Source Item Identifie for( int i = 0; i < hb_audio_bitrates_count; i++ ) { [fAudBitratePopUp addItemWithTitle: - [NSString stringWithCString: hb_audio_bitrates[i].string]]; + [NSString stringWithCString: hb_audio_bitrates[i].string]]; + } [fAudBitratePopUp selectItemAtIndex: hb_audio_bitrates_default]; |