diff options
author | sr55 <[email protected]> | 2017-06-14 22:07:14 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2017-06-14 22:07:14 +0100 |
commit | e2aaa9f501ab10d6ca3b01dbd3306b73334c917e (patch) | |
tree | 1794ebd3d4eb442fa018a04aff3170a91f01618f /win/CS/HandBrakeWPF/ViewModels | |
parent | 0b65b3005312401d0f9aad7acb00aa412cea7376 (diff) |
WinGui: Add checkbox for Legacy A/V alignment behaviour for players that don't support MP4 Edit Lists. #778
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 0a8d0b297..1502d4baa 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -393,6 +393,7 @@ namespace HandBrakeWPF.ViewModels this.OptimizeMP4 = selectedPreset.Task.OptimizeMP4;
this.IPod5GSupport = selectedPreset.Task.IPod5GSupport;
this.SelectedOutputFormat = selectedPreset.Task.OutputFormat;
+ this.AlignAVStart = selectedPreset.Task.AlignAVStart;
// Tab Settings
this.PictureSettingsViewModel.SetPreset(this.selectedPreset, this.CurrentTask);
@@ -458,6 +459,23 @@ namespace HandBrakeWPF.ViewModels }
}
+ public bool AlignAVStart
+ {
+ get
+ {
+ return this.CurrentTask.AlignAVStart;
+ }
+ set
+ {
+ if (value == this.CurrentTask.AlignAVStart)
+ {
+ return;
+ }
+ this.CurrentTask.AlignAVStart = value;
+ this.NotifyOfPropertyChange(() => this.AlignAVStart);
+ }
+ }
+
/// <summary>
/// Gets or sets The Current Encode Task that the user is building
/// </summary>
@@ -2218,9 +2236,11 @@ namespace HandBrakeWPF.ViewModels this.IsMkv = true;
this.CurrentTask.OptimizeMP4 = false;
this.CurrentTask.IPod5GSupport = false;
+ this.CurrentTask.AlignAVStart = false;
this.NotifyOfPropertyChange(() => this.OptimizeMP4);
this.NotifyOfPropertyChange(() => this.IPod5GSupport);
+ this.NotifyOfPropertyChange(() => this.AlignAVStart);
}
// Update The browse file extension display
|