diff options
author | sr55 <[email protected]> | 2020-08-29 16:02:34 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-08-29 16:02:42 +0100 |
commit | be958b8b132da84f3342ee43eaaf8b092cbd8f19 (patch) | |
tree | 7ce732e7d568426eea1f4f1a2bcbe58e50a23db0 | |
parent | 36246b5a32ba8dfaff17fd925ad8f438e3df89ea (diff) |
WinGui: Fix a bug in preset parsing where multiple video tunes are used. Fixes #3092
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs index 41e9fae37..3348beaeb 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs @@ -301,7 +301,7 @@ namespace HandBrakeWPF.Services.Presets.Factories string[] split = importedPreset.VideoTune.Split(',');
foreach (var item in split)
{
- preset.Task.VideoTunes.Add(new VideoTune(item, item));
+ preset.Task.VideoTunes.Add(new VideoTune(item?.Trim(), item?.Trim()));
}
}
|