diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs index e43f64c16..a79902099 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs @@ -31,8 +31,6 @@ namespace HandBrakeWPF.ViewModels private AudioBehaviours audioBehaviours; private EncodeTask task; - private AudioEncoder audioEncoderFallback; - #region Constructors and Destructors /// <summary> @@ -299,7 +297,7 @@ namespace HandBrakeWPF.ViewModels } set { - if (value == this.audioEncoderFallback) + if (value == this.Task.AllowedPassthruOptions.AudioEncoderFallback) { return; } @@ -425,6 +423,20 @@ namespace HandBrakeWPF.ViewModels this.NotifyOfPropertyChange(() => this.AudioEncoderFallback); } + /// <summary> + /// The refresh task. + /// </summary> + public void RefreshTask() + { + this.NotifyOfPropertyChange(() => this.Task); + + if (this.Task.OutputFormat == OutputFormat.Mp4 && + (this.AudioEncoderFallback == AudioEncoder.ffflac || this.AudioEncoderFallback == AudioEncoder.ffflac24 || this.AudioEncoderFallback == AudioEncoder.Vorbis)) + { + this.AudioEncoderFallback = AudioEncoder.ffaac; + } + } + #endregion } }
\ No newline at end of file |