From 36f5330eb113f7917de31e57a79611c7ad661cc4 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 27 Oct 2018 15:46:52 +0200 Subject: MacGui: move the advanced x264 panel to the 'Additional options' text field contextual menu. --- macosx/HBJob+HBJobConversion.m | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-) (limited to 'macosx/HBJob+HBJobConversion.m') diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index ecef901e0..151e2ed8c 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -141,35 +141,26 @@ const char *encoder_options = NULL; const char *encoder_profile = NULL; const char *encoder_level = NULL; - if (self.video.advancedOptions) + + // we are using the x264/x265 preset system + if ([(tmpString = self.video.completeTune) length]) { - // we are using the advanced panel - if ([(tmpString = self.video.videoOptionExtra) length]) - { - encoder_options = tmpString.UTF8String; - } + encoder_tune = [tmpString UTF8String]; } - else + if ([(tmpString = self.video.videoOptionExtra) length]) { - // we are using the x264/x265 preset system - if ([(tmpString = self.video.completeTune) length]) - { - encoder_tune = [tmpString UTF8String]; - } - if ([(tmpString = self.video.videoOptionExtra) length]) - { - encoder_options = [tmpString UTF8String]; - } - if ([(tmpString = self.video.profile) length]) - { - encoder_profile = [tmpString UTF8String]; - } - if ([(tmpString = self.video.level) length]) - { - encoder_level = [tmpString UTF8String]; - } - encoder_preset = self.video.preset.UTF8String; + encoder_options = [tmpString UTF8String]; + } + if ([(tmpString = self.video.profile) length]) + { + encoder_profile = [tmpString UTF8String]; + } + if ([(tmpString = self.video.level) length]) + { + encoder_level = [tmpString UTF8String]; } + encoder_preset = self.video.preset.UTF8String; + hb_job_set_encoder_preset (job, encoder_preset); hb_job_set_encoder_tune (job, encoder_tune); hb_job_set_encoder_options(job, encoder_options); -- cgit v1.2.3