Actually fix AA display... previous commit was borked

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-09-18 05:45:15 +00:00
parent 6d16d1cf3d
commit 05fd9ee182

View file

@ -1120,14 +1120,11 @@ static int parse_albumart_display(const char *wps_bufptr,
struct wps_data *wps_data) struct wps_data *wps_data)
{ {
(void)wps_bufptr; (void)wps_bufptr;
if (wps_data->num_tokens > 1)
{
struct wps_token *prev = token-1; struct wps_token *prev = token-1;
if (prev->type == WPS_TOKEN_CONDITIONAL) if ((wps_data->num_tokens > 1) && (prev->type == WPS_TOKEN_CONDITIONAL))
{ {
token->type = WPS_TOKEN_ALBUMART_FOUND; token->type = WPS_TOKEN_ALBUMART_FOUND;
} }
}
else if (wps_data->albumart) else if (wps_data->albumart)
{ {
wps_data->albumart->vp = &curr_vp->vp; wps_data->albumart->vp = &curr_vp->vp;