summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-10-27 15:46:52 +0200
committerDamiano Galassi <[email protected]>2018-10-27 15:46:52 +0200
commit36f5330eb113f7917de31e57a79611c7ad661cc4 (patch)
tree847f3a9f60d8f9d1f5b983e767f3df26c2f0fadd /macosx/HBJob+HBJobConversion.m
parent723649850dd9c47af15e6319a28bba1fb8cefee1 (diff)
MacGui: move the advanced x264 panel to the 'Additional options' text field contextual menu.
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m41
1 files changed, 16 insertions, 25 deletions
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);