diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 771267e26..83f509269 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -495,9 +495,10 @@ namespace HandBrakeWPF.ViewModels if (this.AudioBehaviours.SelectedLangauges.Count > 0)
{
string langName = this.AudioBehaviours.SelectedLangauges.FirstOrDefault(w => !w.Equals(Constants.Any));
- if (!string.IsNullOrEmpty(langName))
+ string langCode = LanguageUtilities.GetLanguageCode(langName);
+ if (!string.IsNullOrEmpty(langCode))
{
- preferredAudioTracks = this.SourceTracks.Where(item => item.Language.Contains(langName));
+ preferredAudioTracks = this.SourceTracks.Where(item => item.LanguageCode.Contains(langCode));
}
}
|