Skip to content

Commit

Permalink
Merge pull request #8059 from ksooo/guiinfo-audio-channels-exclude-zero
Browse files Browse the repository at this point in the history
[guiinfo] (VIDEOPLAYER|LISTITEM)_AUDIO_CHANNELS return empty string for 0 channels, not '0'.
  • Loading branch information
ksooo committed Sep 16, 2015
2 parents 21034c8 + ed7fcac commit a70fc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file removed addons/skin.confluence/media/flagging/audio/0.png
Binary file not shown.
5 changes: 3 additions & 2 deletions xbmc/GUIInfoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,8 @@ std::string CGUIInfoManager::GetLabel(int info, int contextWindow, std::string *
case VIDEOPLAYER_AUDIO_CHANNELS:
if(g_application.m_pPlayer->IsPlaying())
{
strLabel = StringUtils::Format("%i", m_audioInfo.channels);
if (m_audioInfo.channels > 0)
strLabel = StringUtils::Format("%i", m_audioInfo.channels);
}
break;
case VIDEOPLAYER_AUDIO_LANG:
Expand Down Expand Up @@ -5529,7 +5530,7 @@ std::string CGUIInfoManager::GetItemLabel(const CFileItem *item, int info, std::
{
std::string strResult;
int iChannels = item->GetVideoInfoTag()->m_streamDetails.GetAudioChannels();
if (iChannels > -1)
if (iChannels > 0)
strResult = StringUtils::Format("%i", iChannels);
return strResult;
}
Expand Down

0 comments on commit a70fc8d

Please sign in to comment.