diff options
author | RandomEngy <[email protected]> | 2017-11-16 23:02:28 -0800 |
---|---|---|
committer | Scott <[email protected]> | 2017-11-20 15:05:54 +0000 |
commit | 8946e29db99d7fcb761b1a2be619ce18afce40aa (patch) | |
tree | 734cbc5691cded9be4bd32dae39fcb4dbffcaab6 /win/CS/HandBrakeWPF/Services/Scan | |
parent | a0f1c6a49d3f76c97729f1dbb54a1a520161e020 (diff) |
Did a bit of refactoring and added an .editorconfig file to enforce the "spaces for tabs" setting.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Scan')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Scan/LibScan.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs index 287732224..beceb9361 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs @@ -207,13 +207,7 @@ namespace HandBrakeWPF.Services.Scan PixelAspectY = job.PixelAspectY }; - int deinterlaceOn = 0; - if (job.DeinterlaceFilter != DeinterlaceFilter.Off) - { - deinterlaceOn = 1; - } - - bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview, deinterlaceOn)); + bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview, job.DeinterlaceFilter != DeinterlaceFilter.Off)); } catch (AccessViolationException e) { |