mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
[Bugfix/Red] fix red in checkwps , fix mp3_encoder plugin div by 0, warnings
checkwps doesn't have current_tick mp3_encoder had a divide by zero if the file wasn't encoded correctly or wrong file was passed fix gcc warning in huffman encoder move text for small screens Change-Id: I9d09353e184e760ae31d1a1cd434d2790eacb7ca
This commit is contained in:
parent
bcc8c608e5
commit
9eb9e4ab22
2 changed files with 16 additions and 1 deletions
|
|
@ -953,7 +953,11 @@ static int parse_timeout_tag(struct skin_element *element,
|
|||
{
|
||||
st->show = val;
|
||||
st->hide = get_param(element, 1)->data.number;
|
||||
#ifndef __PCTOOL__
|
||||
st->next_tick = current_tick; /* show immediately the first time */
|
||||
#else
|
||||
st->next_tick = 0; /* checkwps doesn't have current_tick */
|
||||
#endif
|
||||
token->type = SKIN_TOKEN_SUBLINE_TIMEOUT_HIDE;
|
||||
token->value.data = PTRTOSKINOFFSET(skin_buffer, st);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue