diff options
author | sr55 <[email protected]> | 2016-12-18 15:47:26 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-18 15:47:34 +0000 |
commit | 38f3b44659d9b5120c745e438e2f789a23ab0cc3 (patch) | |
tree | e59b5acec13c89494352606df6cf907ec0c6bdf7 | |
parent | 77bdefe5a4ab639460bfcb3acec3f77ab7e414c0 (diff) |
WinGui: Set QSV Decode to false if the hardware isn't available for use.
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs index 9e1a82966..a390db6fb 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs @@ -36,6 +36,7 @@ namespace HandBrakeWPF.Services.Encode.Factories using PointToPointMode = HandBrakeWPF.Services.Encode.Model.Models.PointToPointMode; using Subtitle = HandBrake.ApplicationServices.Interop.Json.Encode.Subtitles; using SubtitleTrack = HandBrakeWPF.Services.Encode.Model.Models.SubtitleTrack; + using SystemInfo = HandBrake.ApplicationServices.Utilities.SystemInfo; using Validate = HandBrakeWPF.Helpers.Validate; /// <summary> @@ -301,7 +302,8 @@ namespace HandBrakeWPF.Services.Encode.Factories } video.OpenCL = configuration.ScalingMode == VideoScaler.BicubicCl; - video.QSV.Decode = !configuration.DisableQuickSyncDecoding; + + video.QSV.Decode = SystemInfo.IsQsvAvailable && !configuration.DisableQuickSyncDecoding; return video; } |