diff options
author | sr55 <[email protected]> | 2016-05-14 20:48:33 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-05-14 20:48:33 +0100 |
commit | 7143e10573b89e9abd324737cf1de132804669dc (patch) | |
tree | a0270f58f37893d99da69d875fa80a50dd4e9a19 /win/CS/HandBrakeWPF | |
parent | 9ff44bb0ac9c5cd7810743b3eddd904452adf86c (diff) |
WinGui: Bug fix in the new behaviour tracks preset loading.
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs index 051d78c5f..b3e2bb645 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs @@ -533,7 +533,7 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.AudioTrackSelectionBehavior = EnumHelper<AudioBehaviourModes>.GetShortName(export.AudioTrackBehaviours.SelectedBehaviour);
preset.AudioSecondaryEncoderMode = export.AudioTrackBehaviours.SelectedTrackDefaultBehaviour == AudioTrackDefaultsMode.FirstTrack; // TODO -> We don't support AllTracks yet in other GUIs.
preset.AudioList = new List<AudioList>();
- foreach (var item in export.Task.AudioTracks)
+ foreach (var item in export.AudioTrackBehaviours.BehaviourTracks)
{
AudioList track = new AudioList
{
@@ -541,9 +541,9 @@ namespace HandBrakeWPF.Services.Presets.Factories AudioCompressionLevel = 0, // TODO
AudioDitherMethod = null, // TODO
AudioEncoder = EnumHelper<AudioEncoder>.GetShortName(item.Encoder),
- AudioMixdown = item.MixDown,
+ AudioMixdown = item.MixDown != null ? item.MixDown.ShortName : "dpl2",
AudioNormalizeMixLevel = false, // TODO
- AudioSamplerate = item.SampleRate == 0 ? "auto" : item.SampleRate.ToString(), // TODO check formatting.
+ AudioSamplerate = item.SampleRate == 0 ? "auto" : item.SampleRate.ToString(CultureInfo.InvariantCulture), // TODO check formatting.
AudioTrackDRCSlider = item.DRC,
AudioTrackGainSlider = item.Gain,
AudioTrackQuality = item.Quality ?? 0,
|