diff options
author | ritsuka <[email protected]> | 2015-01-30 14:46:15 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-30 14:46:15 +0000 |
commit | d6bcc43ea2d136a58af0664f3503e443cbe7b363 (patch) | |
tree | 8223b552ac3c84bfb88e7b4d646db486ab83a7c4 | |
parent | a3740ce5c6849989f4e74b8eb06c6bf098b90d59 (diff) |
MacGui: fix a crash that happens when a new preset is created from a one that uses the advanced x264 panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6829 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/HBVideo.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index b719f4e7b..a5bbd15d7 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -34,6 +34,11 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; _qualityMaxValue = 51.0f; _job = job; + _preset = @"medium"; + _tune = @""; + _profile = @"auto"; + _level = @"auto"; + [self updateQualityBounds]; _notificationsEnabled = YES; @@ -511,9 +516,9 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; { // preset does not use the x264 preset system, reset the widgets. self.preset = @"medium"; - self.tune = nil; - self.profile = nil; - self.level = nil; + self.tune = @""; + self.profile = @"auto"; + self.level = @"auto"; self.fastDecode = NO; // x264UseAdvancedOptions is not set (legacy preset) |