diff options
author | ritsuka <[email protected]> | 2014-08-21 17:43:05 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-08-21 17:43:05 +0000 |
commit | 3ee1f90e18726df817b94c04fda55ea823aae4e0 (patch) | |
tree | eaedb8d74eadec1f2403c0d34778c50f38bd2b19 /macosx | |
parent | 0951ffcde7c991a2a4bcaf24691af61db87a2c20 (diff) |
MacGui: load the lavcOption from preset and fixed the encoder selection when the container is changed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6336 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBVideoController.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index 9a6cb4b73..af2c6c0db 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -260,6 +260,13 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio self.codec = hb_video_encoder_get_default(videoContainer); [self videoEncoderPopUpChanged:nil]; } + else + { + self.codec = selectedVidEncoderTag; + } + + [fVidEncoderPopUp selectItemWithTag:self.codec]; + } - (void)titleChanged:(NSNotification *)aNotification @@ -439,6 +446,9 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio } } + // Apply the lavcOption + self.lavcOptions = preset[@"lavcOption"]; + int qualityType = [preset[@"VideoQualityType"] intValue] - 1; /* Note since the removal of Target Size encoding, the possible values for VideoQuality type are 0 - 1. * Therefore any preset that uses the old 2 for Constant Quality would now use 1 since there is one less index |