diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 3717dadd48..ede1871414 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1120,13 +1120,10 @@ static int parse_albumart_display(const char *wps_bufptr, | |||
1120 | struct wps_data *wps_data) | 1120 | struct wps_data *wps_data) |
1121 | { | 1121 | { |
1122 | (void)wps_bufptr; | 1122 | (void)wps_bufptr; |
1123 | if (wps_data->num_tokens > 1) | 1123 | struct wps_token *prev = token-1; |
1124 | if ((wps_data->num_tokens > 1) && (prev->type == WPS_TOKEN_CONDITIONAL)) | ||
1124 | { | 1125 | { |
1125 | struct wps_token *prev = token-1; | 1126 | token->type = WPS_TOKEN_ALBUMART_FOUND; |
1126 | if (prev->type == WPS_TOKEN_CONDITIONAL) | ||
1127 | { | ||
1128 | token->type = WPS_TOKEN_ALBUMART_FOUND; | ||
1129 | } | ||
1130 | } | 1127 | } |
1131 | else if (wps_data->albumart) | 1128 | else if (wps_data->albumart) |
1132 | { | 1129 | { |