summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services
diff options
context:
space:
mode:
authorScott <[email protected]>2015-09-18 21:41:57 +0100
committerScott <[email protected]>2015-09-18 21:41:57 +0100
commit7e266c63e5241289d6fb9645ea932a35de07bb18 (patch)
tree78ac4ff63dd0a98bb9df6fdfcec41cec91960f49 /win/CS/HandBrake.ApplicationServices/Services
parent8ea1a78f7ac7e4f9bec9cb551b029754c613f642 (diff)
WinGui: Starting work on more API cleanup in ApplicationServices library.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs16
1 files changed, 15 insertions, 1 deletions
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)