diff options
author | sr55 <[email protected]> | 2015-03-05 20:54:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-03-05 20:54:44 +0000 |
commit | 5c7597d9de68e920ea6f06b6086df148d7225739 (patch) | |
tree | 3d6259d16fd65061d1895562b65e4094ac16d47d /win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs | |
parent | 205b514fa0a9cd94c500a7be7460684aba82d8bc (diff) |
WinGui: Remove the EncodeJob model. This removes another abstraction layer that is no longer necessary now that the GUI uses libhb directly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6966 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs index 08ee84b9d..1d5e94299 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs @@ -26,11 +26,11 @@ namespace HandBrake.ApplicationServices.Services.Scan using HandBrake.ApplicationServices.Interop.EventArgs;
using HandBrake.ApplicationServices.Interop.Interfaces;
using HandBrake.ApplicationServices.Interop.Model;
+ using HandBrake.ApplicationServices.Interop.Model.Preview;
using HandBrake.ApplicationServices.Interop.Model.Scan;
using Chapter = HandBrake.ApplicationServices.Services.Scan.Model.Chapter;
using ScanProgressEventArgs = HandBrake.ApplicationServices.Interop.EventArgs.ScanProgressEventArgs;
- using Size = System.Drawing.Size;
using Subtitle = HandBrake.ApplicationServices.Services.Scan.Model.Subtitle;
using SubtitleType = HandBrake.ApplicationServices.Services.Encode.Model.Models.SubtitleType;
using Title = HandBrake.ApplicationServices.Services.Scan.Model.Title;
@@ -264,12 +264,10 @@ namespace HandBrake.ApplicationServices.Services.Scan return null;
}
- EncodeJob encodeJob = InteropModelCreator.GetEncodeJob(job, configuraiton);
-
BitmapImage bitmapImage = null;
try
{
- bitmapImage = this.instance.GetPreview(encodeJob, preview);
+ bitmapImage = this.instance.GetPreview((PreviewSettings)job, preview);
}
catch (AccessViolationException e)
{
|