Skip to content

Commit

Permalink
[Players] Don't assign "unknown" to the audio/subtitle stream name, l…
Browse files Browse the repository at this point in the history
…eave it empty instead.
  • Loading branch information
ace20022 committed Mar 18, 2013
1 parent d54456c commit e7dfb28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions xbmc/cores/dvdplayer/DVDPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2699,8 +2699,6 @@ void CDVDPlayer::GetSubtitleStreamInfo(int index, SPlayerSubtitleStreamInfo &inf
SelectionStream& s = m_SelectionStreams.Get(STREAM_SUBTITLE, index);
if(s.name.length() > 0)
info.name = s.name;
else
info.name = g_localizeStrings.Get(13205); // Unknown

if(s.type == STREAM_NONE)
info.name += "(Invalid)";
Expand Down Expand Up @@ -3843,8 +3841,6 @@ void CDVDPlayer::GetAudioStreamInfo(int index, SPlayerAudioStreamInfo &info)

if(s.name.length() > 0)
info.name = s.name;
else
info.name += "Unknown";

if(s.type == STREAM_NONE)
info.name += " (Invalid)";
Expand Down
4 changes: 0 additions & 4 deletions xbmc/cores/omxplayer/OMXPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2700,8 +2700,6 @@ void COMXPlayer::GetSubtitleStreamInfo(int index, SPlayerSubtitleStreamInfo &inf
OMXSelectionStream& s = m_SelectionStreams.Get(STREAM_SUBTITLE, index);
if(s.name.length() > 0)
info.name = s.name;
else
info.name = g_localizeStrings.Get(13205); // Unknown

if(s.type == STREAM_NONE)
info.name += "(Invalid)";
Expand Down Expand Up @@ -3797,8 +3795,6 @@ void COMXPlayer::GetAudioStreamInfo(int index, SPlayerAudioStreamInfo &info)

if(s.name.length() > 0)
info.name = s.name;
else
info.name += "Unknown";

if(s.type == STREAM_NONE)
info.name += " (Invalid)";
Expand Down

0 comments on commit e7dfb28

Please sign in to comment.