Permalink
Browse files

[Players] Set the language code instead of the full name in the GetSu…

…btitleStreamInfo methods.
  • Loading branch information...
1 parent e71cb79 commit 089ba3a922d0303af1fa782133e935b28a4b2e48 @ace20022 committed Mar 3, 2013
Showing with 2 additions and 10 deletions.
  1. +1 −5 xbmc/cores/dvdplayer/DVDPlayer.cpp
  2. +1 −5 xbmc/cores/omxplayer/OMXPlayer.cpp
@@ -2711,11 +2711,7 @@ void CDVDPlayer::GetSubtitleStreamInfo(int index, SPlayerSubtitleStreamInfo &inf
if(s.type == STREAM_NONE)
info.name += "(Invalid)";
- CStdString strStreamLang;
- if (!g_LangCodeExpander.Lookup(strStreamLang, s.language))
- info.language = g_localizeStrings.Get(13205); // Unknown
- else
- info.language = strStreamLang;
+ info.language = s.language;
}
void CDVDPlayer::SetSubtitle(int iStream)
@@ -2712,11 +2712,7 @@ void COMXPlayer::GetSubtitleStreamInfo(int index, SPlayerSubtitleStreamInfo &inf
if(s.type == STREAM_NONE)
info.name += "(Invalid)";
- CStdString strStreamLang;
- if (!g_LangCodeExpander.Lookup(strStreamLang, s.language))
- info.language = g_localizeStrings.Get(13205); // Unknown
- else
- info.language = strStreamLang;
+ info.language = s.language;
}
void COMXPlayer::SetSubtitle(int iStream)

0 comments on commit 089ba3a

Please sign in to comment.