From 718407b65f64851ef5212d4e8b4bca2686ed7835 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 23 Jan 2015 17:43:22 +0000 Subject: WinGui: Fix an issue with the video preset defaulting when changing the video encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6804 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index efee77df1..9bcb229fd 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -1211,7 +1211,7 @@ namespace HandBrakeWPF.ViewModels this.VideoPresetMaxValue = encoder.Presets.Count - 1; int middlePreset = (int)Math.Round((decimal)(this.VideoPresetMaxValue / 2), 0); - this.VideoPreset = new VideoPreset(encoder.Presets[middlePreset], encoder.Presets[middlePreset]); + this.VideoPresetValue = middlePreset; } else { -- cgit v1.2.3