From 7e266c63e5241289d6fb9645ea932a35de07bb18 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 18 Sep 2015 21:41:57 +0100 Subject: WinGui: Starting work on more API cleanup in ApplicationServices library. --- .../Services/Scan/LibScan.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrake.ApplicationServices/Services') diff --git a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs index b67513826..c7a97fa42 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs @@ -272,7 +272,21 @@ namespace HandBrake.ApplicationServices.Services.Scan BitmapImage bitmapImage = null; try { - PreviewSettings settings = new PreviewSettings(job); + PreviewSettings settings = new PreviewSettings + { + Cropping = new Cropping(job.Cropping), + MaxWidth = job.MaxWidth ?? 0, + MaxHeight = job.MaxHeight ?? 0, + KeepDisplayAspect = job.KeepDisplayAspect, + TitleNumber = job.Title, + Anamorphic = job.Anamorphic, + Modulus = job.Modulus, + Width = job.Width ?? 0, + Height = job.Height ?? 0, + PixelAspectX = job.PixelAspectX, + PixelAspectY = job.PixelAspectY + }; + bitmapImage = this.instance.GetPreview(settings, preview); } catch (AccessViolationException e) -- cgit v1.2.3