From e1fd5c28012f8eafb2aafa084a0106968d0974b9 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 18 Mar 2010 07:20:14 +0000 Subject: 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 --- apps/gui/skin_engine/skin_tokens.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/gui/skin_engine/skin_tokens.c') 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; -- cgit v1.2.3