summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Common.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r--win/C#/Functions/Common.cs24
1 files changed, 19 insertions, 5 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index fbd9b6429..9e642b2d5 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -164,6 +164,11 @@ namespace Handbrake.Functions
mainWindow.drp_videoEncoder.Text = presetQuery.VideoEncoder;
mainWindow.drp_audioCodec.Text = presetQuery.AudioEncoder;
+ if (presetQuery.AudioEncoder == "AAC + AC3")
+ {
+ mainWindow.text_destination.Text = mainWindow.text_destination.Text.Replace(".mp4", ".m4v");
+ }
+
if (presetQuery.IpodAtom == true)
mainWindow.check_iPodAtom.CheckState = CheckState.Checked;
else
@@ -174,7 +179,7 @@ namespace Handbrake.Functions
else
mainWindow.check_optimiseMP4.CheckState = CheckState.Unchecked;
- #endregion
+ #endregion
// Picture Settings Tab
#region Picture
@@ -198,10 +203,6 @@ namespace Handbrake.Functions
else
mainWindow.check_deblock.CheckState = CheckState.Unchecked;
- if (presetQuery.ChapterMarkers == true)
- mainWindow.Check_ChapterMarkers.CheckState = CheckState.Checked;
- else
- mainWindow.Check_ChapterMarkers.CheckState = CheckState.Unchecked;
if (presetQuery.Anamorphic == true)
mainWindow.CheckPixelRatio.CheckState = CheckState.Checked;
@@ -272,6 +273,19 @@ namespace Handbrake.Functions
#endregion
+ // Chapter Markers Tab
+ #region Chapter Markers
+
+ if (presetQuery.ChapterMarkers == true)
+ {
+ mainWindow.Check_ChapterMarkers.CheckState = CheckState.Checked;
+ mainWindow.text_destination.Text = mainWindow.text_destination.Text.Replace(".mp4", ".m4v");
+ }
+ else
+ mainWindow.Check_ChapterMarkers.CheckState = CheckState.Unchecked;
+
+ #endregion
+
// Audio Settings Tab
#region Audio
mainWindow.drp_audioBitrate.Text = presetQuery.AudioBitrate;