diff options
author | sr55 <[email protected]> | 2019-01-12 19:41:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-01-12 19:41:52 +0000 |
commit | 5a4ccc3a37e631ddb9ebe51ebd69c245949e1796 (patch) | |
tree | 545dcd8bc15dda97f9ffc67d69c260ebd0b9561e /win/CS/HandBrakeWPF/Services/Encode/Factories | |
parent | 217e9bb5b3158086eb7481ef510cad27a7ddb7c3 (diff) |
WinGui: Strip out some legacy code for x264 options handling.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode/Factories')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs index e938f8b5a..46ff1e97a 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs @@ -273,24 +273,16 @@ namespace HandBrakeWPF.Services.Encode.Factories video.Encoder = videoEncoder.ShortName; } - string advancedOptions = job.ShowAdvancedTab ? job.AdvancedEncoderOptions : string.Empty; - if (!string.IsNullOrEmpty(advancedOptions)) - { - video.Options = advancedOptions; - } - else - { - video.Level = job.VideoLevel != null ? job.VideoLevel.ShortName : null; - video.Options = job.ExtraAdvancedArguments; - video.Preset = job.VideoPreset != null ? job.VideoPreset.ShortName : null; - video.Profile = job.VideoProfile != null ? job.VideoProfile.ShortName : null; + video.Level = job.VideoLevel?.ShortName; + video.Options = job.ExtraAdvancedArguments; + video.Preset = job.VideoPreset?.ShortName; + video.Profile = job.VideoProfile?.ShortName; - if (job.VideoTunes != null && job.VideoTunes.Count > 0) + if (job.VideoTunes != null && job.VideoTunes.Count > 0) + { + foreach (var item in job.VideoTunes) { - foreach (var item in job.VideoTunes) - { - video.Tune += string.IsNullOrEmpty(video.Tune) ? item.ShortName : "," + item.ShortName; - } + video.Tune += string.IsNullOrEmpty(video.Tune) ? item.ShortName : "," + item.ShortName; } } |