summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-03-06 19:40:08 +0000
committersr55 <[email protected]>2015-03-06 19:40:08 +0000
commit0d4c60c548ffc487c66ca055efb18c7f09faa0c6 (patch)
tree0e33d4c98eae5ae0ebed0122cfba3a70d0f40d25 /win/CS/HandBrake.ApplicationServices
parentb2afa282e450e3c1e7c1ab75925734086e6b706a (diff)
WinGui: Restore the preview functionality after refactoring.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6969 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs13
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs3
2 files changed, 14 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs b/win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs
index af1403360..e2a07d1cc 100644
--- a/win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs
+++ b/win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs
@@ -16,6 +16,17 @@ namespace HandBrake.ApplicationServices.Interop.Model.Preview
/// </summary>
public class PreviewSettings : EncodeTask
{
- // TODO flesh this out into a proper model.
+ /// <summary>
+ /// Initializes a new instance of the <see cref="PreviewSettings"/> class.
+ /// </summary>
+ /// <param name="task">
+ /// The task.
+ /// </param>
+ public PreviewSettings(EncodeTask task)
+ : base(task)
+ {
+ }
+
+ // TODO flesh this out into a proper model.
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs
index 1d5e94299..903497200 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs
@@ -267,7 +267,8 @@ namespace HandBrake.ApplicationServices.Services.Scan
BitmapImage bitmapImage = null;
try
{
- bitmapImage = this.instance.GetPreview((PreviewSettings)job, preview);
+ PreviewSettings settings = new PreviewSettings(job);
+ bitmapImage = this.instance.GetPreview(settings, preview);
}
catch (AccessViolationException e)
{