summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2005-08-13 08:13:32 +0000
committerMagnus Holmgren <magnushol@gmail.com>2005-08-13 08:13:32 +0000
commitc0fc2054c2e17c33017f052ffdf70ad4eb0f2a7e (patch)
tree179f6ebe741cb7f84e8d2c00a18756bf814d58c9 /apps/screens.c
parent501ab1a17f5570097ca75c93160ba5dfed337545 (diff)
Show VBR info in the ID3 info screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7314 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 1cbda99d0f..e259c03407 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -1308,7 +1308,7 @@ int draw_id3_item(int line, int top, int header, const char* body)
bool browse_id3(void)
{
- char buf[32];
+ char buf[64];
const struct mp3entry* id3 = audio_current_track();
#if defined(HAVE_LCD_BITMAP)
const int y_margin = lcd_getymargin();
@@ -1387,7 +1387,8 @@ bool browse_id3(void)
playlist_amount());
line = draw_id3_item(line, top, LANG_ID3_PLAYLIST, buf);
- snprintf(buf, sizeof(buf), "%d kbps", id3->bitrate);
+ snprintf(buf, sizeof(buf), "%d kbps%s", id3->bitrate,
+ id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) "");
line = draw_id3_item(line, top, LANG_ID3_BITRATE, buf);
snprintf(buf, sizeof(buf), "%d Hz", id3->frequency);