mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
audioplayer: don't show not recognized bitrates
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9fefb133d9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-18 (Sun, 18 Jun 2017)
Origin message was:
------------------
- audioplayer: don't show not recognized bitrates
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1613,9 +1613,12 @@ void CAudioPlayerGui::paintItem(int pos)
|
||||
std::string tmp = sNr;
|
||||
getFileInfoToDisplay(tmp, m_playlist[currpos]);
|
||||
|
||||
char dura[9];
|
||||
char dura[9] = {0};
|
||||
if (m_inetmode)
|
||||
snprintf(dura, 8, "%ldk", m_playlist[currpos].MetaData.total_time);
|
||||
{
|
||||
if (m_playlist[currpos].MetaData.total_time != 0)
|
||||
snprintf(dura, 8, "%ldk", m_playlist[currpos].MetaData.total_time);
|
||||
}
|
||||
else
|
||||
snprintf(dura, 8, "%ld:%02ld", m_playlist[currpos].MetaData.total_time / 60, m_playlist[currpos].MetaData.total_time % 60);
|
||||
|
||||
@@ -2117,7 +2120,7 @@ void CAudioPlayerGui::updateMetaData()
|
||||
paintCover();
|
||||
}
|
||||
if (CAudioPlayer::getInstance()->hasMetaDataChanged() != 0)
|
||||
updateLcd = true;
|
||||
updateLcd = true;
|
||||
|
||||
//printf("CAudioPlayerGui::updateMetaData: updateLcd %d\n", updateLcd);
|
||||
if (updateLcd)
|
||||
|
Reference in New Issue
Block a user