forked from len0rd/rockbox
Oops, forgot to trim down the lines before my previous commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13988 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29407cbe80
commit
aa643db434
1 changed files with 4 additions and 2 deletions
|
@ -851,9 +851,11 @@ static char *get_token_value(struct gui_wps *gwps,
|
|||
case WPS_TOKEN_TRACK_ELAPSED_PERCENT:
|
||||
if (intval)
|
||||
{
|
||||
*intval = limit * (id3->elapsed + state->ff_rewind_count) / id3->length + 1;
|
||||
*intval = limit * (id3->elapsed + state->ff_rewind_count)
|
||||
/ id3->length + 1;
|
||||
}
|
||||
snprintf(buf, buf_size, "%d", 100*(id3->elapsed + state->ff_rewind_count) / id3->length);
|
||||
snprintf(buf, buf_size, "%d",
|
||||
100*(id3->elapsed + state->ff_rewind_count) / id3->length);
|
||||
return buf;
|
||||
|
||||
case WPS_TOKEN_METADATA_ARTIST:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue