diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 16 | ||||
-rw-r--r-- | win/CS/frmMain.cs | 3 |
2 files changed, 17 insertions, 2 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index 338cbb550..a3fb2889c 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -182,7 +182,7 @@ namespace Handbrake.Controls /// </summary>
/// <param name="selectedTitle">The selected title</param>
/// <param name="preset">A preset</param>
- public void SetTrackListFromPreset(Title selectedTitle, Preset preset)
+ public void SetTrackListAfterTitleChange(Title selectedTitle, Preset preset)
{
if (selectedTitle.AudioTracks.Count == 0)
{
@@ -575,6 +575,20 @@ namespace Handbrake.Controls return;
}
+ // If the Native Language is not set. Just set Track information in each output track.
+ if (Properties.Settings.Default.NativeLanguage == "Any")
+ {
+ drp_audioTrack.SelectedIndex = 0;
+ foreach (AudioTrack track in this.audioTracks)
+ {
+ if (this.drp_audioTrack.SelectedItem != null)
+ {
+ track.ScannedTrack = this.drp_audioTrack.SelectedItem as Audio;
+ }
+ }
+ return;
+ }
+
// Remove all old Audiotracks before adding new ones.
this.AudioTracks.Clear();
diff --git a/win/CS/frmMain.cs b/win/CS/frmMain.cs index 031a632b5..bcdd6aaec 100644 --- a/win/CS/frmMain.cs +++ b/win/CS/frmMain.cs @@ -384,6 +384,7 @@ namespace Handbrake }
#endregion
+
#region Tools Menu
/// <summary>
@@ -1471,7 +1472,7 @@ namespace Handbrake drop_chapterFinish.Text = drop_chapterFinish.Items[drop_chapterFinish.Items.Count - 1].ToString();
// Populate the Audio Channels Dropdown
- AudioSettings.SetTrackListFromPreset(selectedTitle, this.currentlySelectedPreset);
+ AudioSettings.SetTrackListAfterTitleChange(selectedTitle, this.currentlySelectedPreset);
// Populate the Subtitles dropdown
Subtitles.SetSubtitleTrackAuto(selectedTitle.Subtitles.ToArray());
|