summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideoController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r--macosx/HBVideoController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m
index 8ade4da8b..9a0ecb14a 100644
--- a/macosx/HBVideoController.m
+++ b/macosx/HBVideoController.m
@@ -128,7 +128,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
}
else if ([keyPath isEqualToString:@"video.unparseOptions"])
{
- if (self.video.encoder == HB_VCODEC_X264)
+ if (self.video.encoder & HB_VCODEC_X264_MASK)
{
fDisplayX264PresetsUnparseTextField.stringValue = [NSString stringWithFormat:@"x264 Unparse: %@", self.video.unparseOptions];
}
@@ -214,7 +214,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
fPresetsBox.contentView = fPresetView;
[self setupPresetsSlider];
- if (self.video.encoder == HB_VCODEC_X264)
+ if (self.video.encoder & HB_VCODEC_X264_MASK)
{
self.advancedController.hidden = NO;
}
@@ -250,7 +250,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext;
*/
- (void)toggleAdvancedOptionsCheckBoxForEncoder:(int)encoder
{
- if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBShowAdvancedTab"] && (encoder == HB_VCODEC_X264))
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBShowAdvancedTab"] && (encoder & HB_VCODEC_X264_MASK))
{
fX264UseAdvancedOptionsCheck.hidden = NO;
fDividerLine.hidden = YES;