- streaminfo2: add comment because of broken libcoolstream2 output

This commit is contained in:
svenhoefer
2017-01-29 22:31:21 +01:00
parent 17b8e684e0
commit 891bc71f9d

View File

@@ -620,12 +620,17 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
average_bitrate_pos = ypos += iheight; average_bitrate_pos = ypos += iheight;
//AUDIOTYPE //AUDIOTYPE
ypos += iheight; ypos += iheight;
int type, layer, freq, mode, lbitrate;
audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode);
snprintf(buf, sizeof(buf), "%s:", g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE)); snprintf(buf, sizeof(buf), "%s:", g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE));
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_MENUCONTENT_TEXT); g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_MENUCONTENT_TEXT);
int type, layer, freq, mode, lbitrate;
/*
audioDecoder->getAudioInfo() seems broken in libcoolstream2.
ddmode is always 1 ("CH1/CH2").
*/
audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode);
if (type == AUDIO_FMT_MPEG) if (type == AUDIO_FMT_MPEG)
{ {
const char *mpegmodes[] = const char *mpegmodes[] =