summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-02-13 22:31:41 +0000
committersr55 <[email protected]>2016-02-13 22:31:41 +0000
commitb63b0bb81471ca6d8aa89fc3800126dfe91d84bc (patch)
tree6cf39de1d69fe9a02700c376f4a23a2ec4a3002b /win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
parent9667fe056a99b83bdc90cf75f8922ee745f87d52 (diff)
WinGui: Fix a few binding errors on the audio Default tab. Allow Turbo first pass for x265
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs18
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