summaryrefslogtreecommitdiffstats
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
parentd2e2c2ad96222a55a5005edbbdea3fe755c388a5 (diff)
downloadrockbox-e1fd5c28012f8eafb2aafa084a0106968d0974b9.tar.gz
rockbox-e1fd5c28012f8eafb2aafa084a0106968d0974b9.tar.bz2
rockbox-e1fd5c28012f8eafb2aafa084a0106968d0974b9.zip
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
-rw-r--r--apps/gui/skin_engine/skin_tokens.c5
-rw-r--r--apps/gui/skin_engine/wps_debug.c7
2 files changed, 10 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;
diff --git a/apps/gui/skin_engine/wps_debug.c b/apps/gui/skin_engine/wps_debug.c
index 9a6d4e09cf..26554b1db6 100644
--- a/apps/gui/skin_engine/wps_debug.c
+++ b/apps/gui/skin_engine/wps_debug.c
@@ -504,6 +504,13 @@ static char *get_token_desc(struct wps_token *token, char *buf,
case WPS_TOKEN_LANG_IS_RTL:
snprintf(buf, bufsize, "lang: is_rtl?");
break;
+
+ case WPS_TOKEN_TRACK_STARTING:
+ snprintf(buf, bufsize, "first %d seconds of track", token->value.i);
+ break;
+ case WPS_TOKEN_TRACK_ENDING:
+ snprintf(buf, bufsize, "last %d seconds of track", token->value.i);
+ break;
default:
for(i=1; i<sizeof(tokens)/sizeof(*token); i++)
{