mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- audioplayer: don't show not recognized bitrates
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1577,9 +1577,12 @@ void CAudioPlayerGui::paintItem(int pos)
|
|||||||
std::string tmp = sNr;
|
std::string tmp = sNr;
|
||||||
getFileInfoToDisplay(tmp, m_playlist[currpos]);
|
getFileInfoToDisplay(tmp, m_playlist[currpos]);
|
||||||
|
|
||||||
char dura[9];
|
char dura[9] = {0};
|
||||||
if (m_inetmode)
|
if (m_inetmode)
|
||||||
|
{
|
||||||
|
if (m_playlist[currpos].MetaData.total_time != 0)
|
||||||
snprintf(dura, 8, "%ldk", m_playlist[currpos].MetaData.total_time);
|
snprintf(dura, 8, "%ldk", m_playlist[currpos].MetaData.total_time);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
snprintf(dura, 8, "%ld:%02ld", m_playlist[currpos].MetaData.total_time / 60, m_playlist[currpos].MetaData.total_time % 60);
|
snprintf(dura, 8, "%ld:%02ld", m_playlist[currpos].MetaData.total_time / 60, m_playlist[currpos].MetaData.total_time % 60);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user