diff options
author | sr55 <[email protected]> | 2013-11-19 21:55:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-11-19 21:55:44 +0000 |
commit | f83ab26ab8e1d2ce277f0c12f23b5753bf63d763 (patch) | |
tree | f59a860b5a06effcdccc57dfa83629d171536864 /win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs | |
parent | ca8fe7c1fe8abf869d4c53e31124c5f0b1aa8dfa (diff) |
WinGui: Started work on API improvements in the Application services dll. Removing the concept of user settings and replacing it with a Configuration object.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5896 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs index 39bc48090..9aba8e442 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs @@ -22,6 +22,7 @@ namespace HandBrakeWPF.ViewModels using HandBrake.ApplicationServices.Model.Encoding;
using HandBrake.ApplicationServices.Services.Interfaces;
+ using HandBrakeWPF.Factories;
using HandBrakeWPF.Services;
using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -300,11 +301,7 @@ namespace HandBrakeWPF.ViewModels encodeTask.IsPreviewEncode = true;
encodeTask.PreviewEncodeStartAt = this.StartAt.ToString(CultureInfo.InvariantCulture);
encodeTask.PreviewEncodeDuration = this.Duration;
- QueueTask task = new QueueTask
- {
- Task = encodeTask,
- };
-
+ QueueTask task = new QueueTask(encodeTask, HBConfigurationFactory.Create(false));
ThreadPool.QueueUserWorkItem(this.CreatePreview, task);
}
@@ -389,7 +386,7 @@ namespace HandBrakeWPF.ViewModels this.encodeService.EncodeCompleted += this.encodeService_EncodeCompleted;
this.encodeService.EncodeStatusChanged += this.encodeService_EncodeStatusChanged;
- this.encodeService.Start((QueueTask)state, false);
+ this.encodeService.Start((QueueTask)state);
this.userSettingService.SetUserSetting(UserSettingConstants.LastPreviewDuration, this.Duration);
}
#endregion
|