summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-03-18 07:20:14 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-03-18 07:20:14 +0000
commite1fd5c28012f8eafb2aafa084a0106968d0974b9 (patch)
treeafa19f2f159499022fdea3e3dab3cb851b217d8c /apps/gui/skin_engine/skin_tokens.c
parentd2e2c2ad96222a55a5005edbbdea3fe755c388a5 (diff)
fix yelllow and add those tags to the debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25240 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index df2c42e727..8cf48fb202 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -908,8 +908,9 @@ const char *get_token_value(struct gui_wps *gwps,
case WPS_TOKEN_TRACK_ENDING:
if (id3)
{
- int elapsed = id3->elapsed + + state->ff_rewind_count;
- if (id3->length - elapsed < token->value.i * HZ)
+ unsigned long elapsed = id3->elapsed + + state->ff_rewind_count;
+ unsigned time = token->value.i * HZ;
+ if (id3->length - elapsed < time)
return "ending";
}
return NULL;