diff --git a/src/apps/mediaplayer/InfoWin.cpp b/src/apps/mediaplayer/InfoWin.cpp index a98f3ceac4..d179add82e 100644 --- a/src/apps/mediaplayer/InfoWin.cpp +++ b/src/apps/mediaplayer/InfoWin.cpp @@ -405,6 +405,16 @@ printf("InfoWin::Update(0x%08lx)\n", which); rateString.ReplaceFirst("%d", "??"); s << rateString; } + if (format.type == B_MEDIA_ENCODED_AUDIO) { + float br = format.u.encoded_audio.bit_rate; + if (br > 0.0) { + char rateString[20]; + snprintf(rateString, sizeof(rateString), B_TRANSLATE(", %.0f kbps"), + br / 1000); + s << rateString; + } + } + s << "\n\n"; fContentsView->Insert(s.String()); } @@ -430,6 +440,8 @@ printf("InfoWin::Update(0x%08lx)\n", which); d = d % (60 * 1000); s << v << ":"; v = d / 1000; + if (v < 10) + s << '0'; s << v; if (hours) s << " " << B_TRANSLATE_COMMENT("h", "Hours");