summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs20
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs2
2 files changed, 19 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
index 16d8d1694..6e2d59667 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
@@ -32,8 +32,6 @@ namespace HandBrake.ApplicationServices.Model
this.AllowedPassthruOptions = new AllowedPassthru();
}
- #region Source
-
/// <summary>
/// Initializes a new instance of the <see cref="EncodeTask"/> class.
/// Copy Constructor
@@ -121,8 +119,13 @@ namespace HandBrake.ApplicationServices.Model
this.x264Preset = task.x264Preset;
this.x264Profile = task.x264Profile;
this.X264Tune = task.X264Tune;
+
+ this.PreviewStartAt = task.PreviewStartAt;
+ this.PreviewDuration = task.PreviewDuration;
}
+ #region Source
+
/// <summary>
/// Gets or sets Source.
/// </summary>
@@ -421,6 +424,19 @@ namespace HandBrake.ApplicationServices.Model
#endregion
+ #region Preview
+
+ /// <summary>
+ /// Gets or sets StartAt.
+ /// </summary>
+ public int? PreviewStartAt { get; set; }
+
+ /// <summary>
+ /// Gets or sets Duration.
+ /// </summary>
+ public int? PreviewDuration { get; set; }
+ #endregion
+
#region Preset Information (TODO This should probably be dropped)
/// <summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs
index 84c6252a2..e2eacce72 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs
@@ -366,7 +366,7 @@ namespace HandBrake.ApplicationServices.Services.Base
// Make sure the path exists, attempt to create it if it doesn't
try
{
- string path = Directory.GetParent(task.Destination).ToString();
+ string path = Directory.GetParent(task.Destination ?? task.Task.Destination).ToString();
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);