diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs index 77cd826db..d360ab0ea 100644 --- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs @@ -138,7 +138,6 @@ namespace HandBrakeWPF.ViewModels this.Title = "Preview";
this.Percentage = "0.00%";
this.PercentageValue = 0;
- this.StartAt = 1;
this.Duration = 30;
this.CanPlay = true;
@@ -324,11 +323,6 @@ namespace HandBrakeWPF.ViewModels }
/// <summary>
- /// Gets or sets StartAt.
- /// </summary>
- public int StartAt { get; set; }
-
- /// <summary>
/// Gets StartPoints.
/// </summary>
public IEnumerable<int> StartPoints
@@ -523,7 +517,7 @@ namespace HandBrakeWPF.ViewModels EncodeTask encodeTask = new EncodeTask(this.Task)
{
PreviewDuration = this.Duration,
- PreviewStartAt = this.StartAt,
+ PreviewStartAt = this.SelectedPreviewImage,
PointToPointMode = PointToPointMode.Preview
};
@@ -547,7 +541,7 @@ namespace HandBrakeWPF.ViewModels // Setup the encode task as a preview encode
encodeTask.IsPreviewEncode = true;
- encodeTask.PreviewEncodeStartAt = this.StartAt;
+ encodeTask.PreviewEncodeStartAt = this.SelectedPreviewImage; // TODO 0 and 1 mean the same. Need to fix this as it knocks the video out of sync with the still preview.
encodeTask.PreviewEncodeDuration = this.Duration;
QueueTask task = new QueueTask(encodeTask, HBConfigurationFactory.Create());
ThreadPool.QueueUserWorkItem(this.CreatePreview, task);
|