summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideoController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-07-29 07:34:38 +0200
committerDamiano Galassi <[email protected]>2019-07-29 07:34:38 +0200
commit8e2843720a9e6a87670da4e3caccfd570f66389f (patch)
tree9ed0392c6aef95b2f600d948564b030da2293d95 /macosx/HBVideoController.m
parent9446eba9eac07b6b47dc6d6e9f3c2a7331b38aa0 (diff)
MacGui: refactor the preferences keys and autonaming methods; fix the queue when running multiple HandBrake instances; fixed a number of bugs.
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r--macosx/HBVideoController.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m
index 95619247d..ab359cf73 100644
--- a/macosx/HBVideoController.m
+++ b/macosx/HBVideoController.m
@@ -5,6 +5,7 @@
It may be used under the terms of the GNU General Public License. */
#import "HBVideoController.h"
+#import "HBPreferencesKeys.h"
@import HandBrakeKit;
@@ -151,8 +152,8 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
{
// Encoders that allow fractional CQ values often have a low granularity
// which makes the slider hard to use, so use a value from preferences.
- granularity = 1.0f / [[NSUserDefaults standardUserDefaults]
- integerForKey:@"HBx264CqSliderFractional"];
+ granularity = 1.0f / [NSUserDefaults.standardUserDefaults
+ integerForKey:HBCqSliderFractional];
}
fVidQualitySlider.minValue = minValue;
fVidQualitySlider.maxValue = maxValue;