summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
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;