1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2010-03-18 07:20:14 +00:00
parent d2e2c2ad96
commit e1fd5c2801
2 changed files with 10 additions and 2 deletions

View file

@ -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;

View file

@ -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++)
{