forked from len0rd/rockbox
Displays 0 VBR bitrate as ? instead of 0kbit/s
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3503 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3c6404ad38
commit
ed2e9e04b0
1 changed files with 9 additions and 1 deletions
|
|
@ -344,7 +344,10 @@ static char* get_tag(struct mp3entry* id3,
|
|||
return id3->vbr ? "(avg)" : NULL;
|
||||
|
||||
case 'b': /* File Bitrate */
|
||||
snprintf(buf, buf_size, "%d", id3->bitrate);
|
||||
if(id3->bitrate)
|
||||
snprintf(buf, buf_size, "%d", id3->bitrate);
|
||||
else
|
||||
snprintf(buf, buf_size, "?");
|
||||
return buf;
|
||||
|
||||
case 'f': /* File Frequency */
|
||||
|
|
@ -652,6 +655,9 @@ static void format_display(char* buf,
|
|||
*flags = WPS_REFRESH_STATIC;
|
||||
}
|
||||
|
||||
char dbuf[32];
|
||||
extern int diffpos, dbval;
|
||||
|
||||
bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mode)
|
||||
{
|
||||
char buf[MAX_PATH];
|
||||
|
|
@ -765,6 +771,8 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
|
|||
peak_meter_enabled = enable_pm;
|
||||
#endif
|
||||
|
||||
snprintf(dbuf, 32, "%x/%x", diffpos, dbval);
|
||||
lcd_puts(0, 1, dbuf);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue