diff options
author | sr55 <[email protected]> | 2013-11-19 23:18:43 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-11-19 23:18:43 +0000 |
commit | acc52477100589c854cd3410a09949dd86fac754 (patch) | |
tree | bf4658ab3770f0541a5be78498a5cecc7687484f /win/CS/HandBrake.ApplicationServices/Utilities | |
parent | c32a46c925608e51be9edcd6b5647c50124dd16a (diff) |
WinGui: Putting in place the framework for a static preview window. Initial window created and now displays a static preview. This feature is not enabled in the UI yet.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5901 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs index 81b4a63c1..c8095f9c1 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs @@ -25,13 +25,13 @@ namespace HandBrake.ApplicationServices.Utilities public class InteropModelCreator
{
/// <summary>
- /// Get an EncodeJob model for a LibHB Encode.
+ /// The get encode job.
/// </summary>
/// <param name="task">
/// The task.
/// </param>
/// <returns>
- /// An Interop.EncodeJob model.
+ /// The <see cref="EncodeJob"/>.
/// </returns>
public static EncodeJob GetEncodeJob(QueueTask task)
{
@@ -41,8 +41,22 @@ namespace HandBrake.ApplicationServices.Utilities return null;
}
+ return GetEncodeJob(task.Task);
+ }
+
+ /// <summary>
+ /// Get an EncodeJob model for a LibHB Encode.
+ /// </summary>
+ /// <param name="task">
+ /// The task.
+ /// </param>
+ /// <returns>
+ /// An Interop.EncodeJob model.
+ /// </returns>
+ public static EncodeJob GetEncodeJob(EncodeTask task)
+ {
// The current Job Configuration
- EncodeTask work = task.Task;
+ EncodeTask work = task;
// Which will be converted to this EncodeJob Model.
EncodeJob job = new EncodeJob();
|