]> granicus.if.org Git - handbrake/commitdiff
WinGui: Restore the preview functionality after refactoring.
authorsr55 <sr55.hb@outlook.com>
Fri, 6 Mar 2015 19:40:08 +0000 (19:40 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 6 Mar 2015 19:40:08 +0000 (19:40 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6969 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Interop/Model/Preview/PreviewSettings.cs
win/CS/HandBrake.ApplicationServices/Services/Scan/LibScan.cs

index af14033600902ec7dc8f03816cfe2cc07971aed1..e2a07d1ccf75609e2b3d5cce9bee33303bab917b 100644 (file)
@@ -16,6 +16,17 @@ namespace HandBrake.ApplicationServices.Interop.Model.Preview
     /// </summary>\r
     public class PreviewSettings : EncodeTask\r
     {\r
-         // TODO flesh this out into a proper model.\r
+        /// <summary>\r
+        /// Initializes a new instance of the <see cref="PreviewSettings"/> class.\r
+        /// </summary>\r
+        /// <param name="task">\r
+        /// The task.\r
+        /// </param>\r
+        public PreviewSettings(EncodeTask task)\r
+            : base(task)\r
+        {\r
+        }\r
+\r
+        // TODO flesh this out into a proper model.\r
     }\r
 }\r
index 1d5e9429950fc404f9e6f1dfffcb5101bb02f8d1..903497200885a8979b66e40f485496395a3c7b77 100644 (file)
@@ -267,7 +267,8 @@ namespace HandBrake.ApplicationServices.Services.Scan
             BitmapImage bitmapImage = null;\r
             try\r
             {\r
-                bitmapImage = this.instance.GetPreview((PreviewSettings)job, preview);\r
+                PreviewSettings settings = new PreviewSettings(job);\r
+                bitmapImage = this.instance.GetPreview(settings, preview);\r
             }\r
             catch (AccessViolationException e)\r
             {\r