summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-06-19 20:04:26 +0100
committersr55 <[email protected]>2020-06-19 20:04:26 +0100
commit0dc75f3ec8a6724a5c0315003948d1957dffe0f2 (patch)
tree3b4693f5441ae51ed6b6a444f0328e233caa72fc /win/CS/HandBrakeWPF/Services
parentd8d6db8a08e6e3086bf6ba1c2a5894df940965bf (diff)
WinGui: Prevent Process isolation feature from being enabled on Windows 7 or Windows 8. We are only going to support this on 10 or later. Fixes #2940
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/UserSettingService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
index 2e29811ba..a28ed12cb 100644
--- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs
+++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs
@@ -28,6 +28,7 @@ namespace HandBrakeWPF.Services
using GeneralApplicationException = Exceptions.GeneralApplicationException;
using SettingChangedEventArgs = EventArgs.SettingChangedEventArgs;
+ using SystemInfo = HandBrakeWPF.Utilities.SystemInfo;
/// <summary>
/// The User Setting Service
@@ -219,6 +220,10 @@ namespace HandBrakeWPF.Services
// Legacy Settings forced Reset.
this.userSettings[UserSettingConstants.ScalingMode] = VideoScaler.Lanczos;
+ if (!SystemInfo.IsWindows10())
+ {
+ this.userSettings[UserSettingConstants.ProcessIsolationEnabled] = false;
+ }
}
catch (Exception exc)
{
@@ -317,7 +322,7 @@ namespace HandBrakeWPF.Services
defaults.Add(UserSettingConstants.DefaultPlayer, false);
// Experimental
- defaults.Add(UserSettingConstants.ProcessIsolationEnabled, true);
+ defaults.Add(UserSettingConstants.ProcessIsolationEnabled, SystemInfo.IsWindows10() ? true : false);
defaults.Add(UserSettingConstants.ProcessIsolationPort, 8037);
defaults.Add(UserSettingConstants.SimultaneousEncodes, 1);