1
0
Fork 0
forked from len0rd/rockbox

woops, elapsed is ms not HZ and how did that extra + get in there?

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25241 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-03-18 08:00:22 +00:00
parent e1fd5c2801
commit 9c159c5d67

View file

@ -900,16 +900,16 @@ const char *get_token_value(struct gui_wps *gwps,
case WPS_TOKEN_TRACK_STARTING: case WPS_TOKEN_TRACK_STARTING:
if (id3) if (id3)
{ {
int elapsed = id3->elapsed + + state->ff_rewind_count; int elapsed = id3->elapsed + state->ff_rewind_count;
if (elapsed < token->value.i * HZ) if (elapsed < token->value.i * 1000)
return "starting"; return "starting";
} }
return NULL; return NULL;
case WPS_TOKEN_TRACK_ENDING: case WPS_TOKEN_TRACK_ENDING:
if (id3) if (id3)
{ {
unsigned long elapsed = id3->elapsed + + state->ff_rewind_count; unsigned long elapsed = id3->elapsed + state->ff_rewind_count;
unsigned time = token->value.i * HZ; unsigned time = token->value.i * 1000;
if (id3->length - elapsed < time) if (id3->length - elapsed < time)
return "ending"; return "ending";
} }