diff options
author | sr55 <[email protected]> | 2015-01-18 18:02:25 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-18 18:02:25 +0000 |
commit | 3971869f634466f832c3ec33e0e9b1779058156f (patch) | |
tree | 01887b3240085072dc11a0d8bfec84a4f3819b4d /win/CS/HandBrakeWPF/ViewModels | |
parent | d972a8646edc79e7f4e373c51dc2fb77233989f2 (diff) |
WinGui: Remove the EncodingProfile object as it doesn't make sense in the context of the app.
Small fix to updated preview window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6767 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-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);
|