summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-09-09 22:29:27 +0100
committersr55 <[email protected]>2016-09-09 22:29:38 +0100
commitacc5d9847c8f6c940b30cc18a767884e4b2e5aeb (patch)
treedd635defbee789eed8bc691c4139a4491b47288e /win
parentfc267da0fef873feab42075fe8649fe6812ec9f4 (diff)
WinGui: Fix #318 Video Previews can start at the beginning of the file, but the first preview is a little bit inside the file. So StartAtPreview indexes are out by 1.
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
index 09d27d029..70ad9f71e 100644
--- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
@@ -558,7 +558,7 @@ namespace HandBrakeWPF.ViewModels
// Setup the encode task as a preview encode
encodeTask.IsPreviewEncode = true;
- 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.PreviewEncodeStartAt = this.SelectedPreviewImage +1;
encodeTask.PreviewEncodeDuration = this.Duration;
QueueTask task = new QueueTask(encodeTask, HBConfigurationFactory.Create(), this.ScannedSource.ScanPath);
ThreadPool.QueueUserWorkItem(this.CreatePreview, task);