Fix fs#12005 - have %pc,%pl and %pr return the number of seconds when used with %if() instead of a formatted time string
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31082 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d66592bad1
commit
8ed7ba1d7b
1 changed files with 6 additions and 0 deletions
|
@ -306,14 +306,20 @@ const char *get_id3_token(struct wps_token *token, struct mp3entry *id3,
|
|||
return "?";
|
||||
return buf;
|
||||
case SKIN_TOKEN_TRACK_TIME_ELAPSED:
|
||||
if (intval && limit == TOKEN_VALUE_ONLY)
|
||||
*intval = elapsed/1000;
|
||||
format_time(buf, buf_size, elapsed);
|
||||
return buf;
|
||||
|
||||
case SKIN_TOKEN_TRACK_TIME_REMAINING:
|
||||
if (intval && limit == TOKEN_VALUE_ONLY)
|
||||
*intval = (length - elapsed)/1000;
|
||||
format_time(buf, buf_size, length - elapsed);
|
||||
return buf;
|
||||
|
||||
case SKIN_TOKEN_TRACK_LENGTH:
|
||||
if (intval && limit == TOKEN_VALUE_ONLY)
|
||||
*intval = length/1000;
|
||||
format_time(buf, buf_size, length);
|
||||
return buf;
|
||||
|
||||
|
|
Loading…
Reference in a new issue