]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix Mixdown selection when the preset mixdown is not available for a given...
authorsr55 <sr55.hb@outlook.com>
Sat, 6 Oct 2018 12:30:46 +0000 (13:30 +0100)
committersr55 <sr55.hb@outlook.com>
Sat, 6 Oct 2018 12:30:46 +0000 (13:30 +0100)
win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs

index 393b5efc27187338e6182353cb26a5f4c74fe378..cda397929d9d547b70b53cf2064cbb97e7dc6d0e 100644 (file)
@@ -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>