diff options
author | Strangelovian <[email protected]> | 2017-07-02 23:22:01 +0200 |
---|---|---|
committer | Scott <[email protected]> | 2017-07-03 18:45:08 +0100 |
commit | 5e1b2fcf6f1238efc15057ee44e42643dc9b5793 (patch) | |
tree | 15a77de1c5de14712180b2ffbc8204edecfe5803 /win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | |
parent | 6554c6ab25f0968c722c6a4e1e1f029b7c874a69 (diff) |
instead of language name, use language code for prefered audio and prefered subtitle selection
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index f1191edae..d747c6112 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -602,7 +602,9 @@ namespace HandBrakeWPF.ViewModels /// </returns>
private string GetPreferredSubtitleTrackLanguage()
{
- return this.SubtitleBehaviours.SelectedLangauges.FirstOrDefault(w => w != Constants.Any);
+ string langName = this.SubtitleBehaviours.SelectedLangauges.FirstOrDefault(w => w != Constants.Any);
+ string langCode = LanguageUtilities.GetLanguageCode(langName);
+ return langCode;
}
/// <summary>
|