diff options
author | sr55 <[email protected]> | 2018-10-06 13:30:46 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-10-06 13:30:46 +0100 |
commit | 716e427aabd9be574c1ef5ef3bb100ed741d5c98 (patch) | |
tree | 6d0e2ed8b990209041cd29c42f3870e61a7bf82b /win/CS/HandBrakeWPF/Services | |
parent | cee90c5e1f67822eeda314214028e59b4adcfdac (diff) |
WinGui: Fix Mixdown selection when the preset mixdown is not available for a given source. Fixes #1618
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs index 393b5efc2..cda397929 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs @@ -44,7 +44,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models private bool isDefault; private IEnumerable<int> bitrates; private IEnumerable<double> encoderQualityValues; - private HandBrakeWPF.Services.Encode.Model.Models.AudioEncoderRateType encoderRateType; + private AudioEncoderRateType encoderRateType; private double? quality; /// <summary> @@ -53,7 +53,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models public AudioTrack() { // Default Values - this.Encoder = HandBrakeWPF.Services.Encode.Model.Models.AudioEncoder.ffaac; + this.Encoder = AudioEncoder.ffaac; this.MixDown = HandBrakeEncoderHelpers.Mixdowns.FirstOrDefault(m => m.ShortName == "dpl2")?.ShortName; this.SampleRate = 48; this.Bitrate = 160; @@ -229,9 +229,9 @@ namespace HandBrakeWPF.Services.Encode.Model.Models this.NotifyOfPropertyChange(() => this.IsBitrateVisible); this.NotifyOfPropertyChange(() => this.IsQualityVisible); this.NotifyOfPropertyChange(() => this.IsRateTypeVisible); - this.NotifyOfPropertyChange(() => this.TrackReference); - this.GetDefaultMixdownIfNull(); + this.NotifyOfPropertyChange(() => this.TrackReference); this.SetupLimits(); + this.GetDefaultMixdownIfNull(); // Refresh the available encoder rate types. this.NotifyOfPropertyChange(() => this.AudioEncoderRateTypes); @@ -580,6 +580,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models { this.SetupBitrateLimits(); this.SetupQualityCompressionLimits(); + this.GetDefaultMixdownIfNull(); } /// <summary> |