]> granicus.if.org Git - handbrake/commitdiff
WinGui: Set QSV Decode to false if the hardware isn't available for use.
authorsr55 <sr55.hb@outlook.com>
Sun, 18 Dec 2016 15:47:26 +0000 (15:47 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 18 Dec 2016 15:47:34 +0000 (15:47 +0000)
win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs

index 9e1a8296649501c92fe0c71a1b97145cfc12e52d..a390db6fb55a2d6b43d2bada101dc0a31d53655f 100644 (file)
@@ -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;
         }