summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorArtem Galin <[email protected]>2020-05-07 17:00:59 +0100
committerScott <[email protected]>2020-05-07 19:07:57 +0100
commit5cbc194305a84e2cab26cadac8e67f92009687c7 (patch)
tree1b1498f96c485c30a5a0ce99a44b4a1019878600 /win/CS/HandBrakeWPF/Services
parent6fbe60b266fed099f49616ecef34db88b6bb3f4b (diff)
WinGui: keep all previous gui advanced options and add qsv lowpower option
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs
index 5430dedf4..eab326930 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeTaskFactory.cs
@@ -325,11 +325,11 @@ namespace HandBrakeWPF.Services.Encode.Factories
{
if (configuration.EnableQsvLowPower && !video.Options.Contains("lowpower"))
{
- video.Options = string.IsNullOrEmpty(video.Options) ? "lowpower=1" : ":lowpower=1";
+ video.Options = string.IsNullOrEmpty(video.Options) ? "lowpower=1" : string.Concat(video.Options, ":lowpower=1");
}
else if(!configuration.EnableQsvLowPower && !video.Options.Contains("lowpower"))
{
- video.Options = string.IsNullOrEmpty(video.Options) ? "lowpower=0" : ":lowpower=0";
+ video.Options = string.IsNullOrEmpty(video.Options) ? "lowpower=0" : string.Concat(video.Options, ":lowpower=0");
}
}