diff options
author | Rodeo <[email protected]> | 2013-05-12 20:38:45 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-05-12 20:38:45 +0000 |
commit | f066cd8a80a6d5a6a84fe3aa87f33f94f95ade67 (patch) | |
tree | acd8048bdb4796cb3f7ea70bb52ed6c3bb3651e0 /macosx/Controller.m | |
parent | 7479f4af01737781d00bf48deb3b3d923ee8d664 (diff) |
MacGui: fix a bug where the iPod 5G checkbox would be disabled for x264 in MP4.
This would happen when switching from MKV with a Theora encoder to MP4: the encoder would be reset to x264, but we failed to detect the change of encoder and therefore didn't call videoEncoderPopUpChanged.
Also, don't needlessly call twoPassCheckboxChanged after videoEncoderPopUpChanged since the latter calls the former.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5452 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index c95ee6aa1..a71eb67cc 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4946,14 +4946,17 @@ bool one_burned = FALSE; } } - /* if we have a previously selected vid encoder tag, then try to select it */ + /* + * item 0 will be selected by default + * deselect it so that we can detect whether the video encoder has changed + */ + [fVidEncoderPopUp selectItem:nil]; if (selectedVidEncoderTag) { - [fVidEncoderPopUp selectItemWithTag: selectedVidEncoderTag]; - } - else - { - [fVidEncoderPopUp selectItemAtIndex: 0]; + // if we have a tag for previously selected encoder, try to select it + // if this fails, [fVidEncoderPopUp selectedItem] will be nil + // we'll handle that scenario further down + [fVidEncoderPopUp selectItemWithTag:selectedVidEncoderTag]; } /* Update the Auto Passtgru Fallback Codec Popup */ @@ -5023,22 +5026,16 @@ bool one_burned = FALSE; else [fDstFile2Field setStringValue: [NSString stringWithFormat:@"%@.%s", [string stringByDeletingPathExtension], ext]]; - if( SuccessfulScan ) + if (SuccessfulScan) { - /* Add/replace to the correct extension */ - - if( [fVidEncoderPopUp selectedItem] == nil ) + if ([fVidEncoderPopUp selectedItem] == nil) { - + /* this means the above call to selectItemWithTag failed */ [fVidEncoderPopUp selectItemAtIndex:0]; [self videoEncoderPopUpChanged:nil]; - - /* We call the method to properly enable/disable turbo 2 pass */ - [self twoPassCheckboxChanged: sender]; - /* We call method method to change UI to reflect whether a preset is used or not*/ } } - [self customSettingUsed: sender]; + [self customSettingUsed:sender]; } - (IBAction) autoSetM4vExtension: (id) sender |