summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2007-04-15 15:38:08 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2007-04-15 15:38:08 +0000
commit1c0f41447ade94e89fa0d773792205ab99a73538 (patch)
treede452a8bdbac0090852f93a170e0d2af59e2c134
parent947eb50d6486f65db824d833b90801f9eabe6492 (diff)
downloadrockbox-1c0f41447ade94e89fa0d773792205ab99a73538.tar.gz
rockbox-1c0f41447ade94e89fa0d773792205ab99a73538.zip
Reverted FS#6949 as we have a strict policy against anonymous contributions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13168 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps-common.c7
-rw-r--r--apps/gui/gwps.h1
-rw-r--r--apps/gui/wps_parser.c1
3 files changed, 0 insertions, 9 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 778c0b0e2e..5b06dd4b2b 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1175,13 +1175,6 @@ static char *get_token_value(struct gui_wps *gwps,
1175 snprintf(buf, buf_size, "%d", id3->rating); 1175 snprintf(buf, buf_size, "%d", id3->rating);
1176 return buf; 1176 return buf;
1177 1177
1178 case WPS_TOKEN_DATABASE_SCORE:
1179 if (intval)
1180 *intval = id3->score + 1;
1181
1182 snprintf(buf, buf_size, "%d", id3->score);
1183 return buf;
1184
1185#if (CONFIG_CODEC == SWCODEC) 1178#if (CONFIG_CODEC == SWCODEC)
1186 case WPS_TOKEN_CROSSFADE: 1179 case WPS_TOKEN_CROSSFADE:
1187 if (intval) 1180 if (intval)
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index 4f7e9b41f7..801a37902e 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -166,7 +166,6 @@ enum wps_token_type {
166 /* Database */ 166 /* Database */
167 WPS_TOKEN_DATABASE_PLAYCOUNT, 167 WPS_TOKEN_DATABASE_PLAYCOUNT,
168 WPS_TOKEN_DATABASE_RATING, 168 WPS_TOKEN_DATABASE_RATING,
169 WPS_TOKEN_DATABASE_SCORE,
170 169
171 /* File */ 170 /* File */
172 WPS_TOKEN_FILE_BITRATE, 171 WPS_TOKEN_FILE_BITRATE,
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index 588b0d67d8..2c7a000367 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -232,7 +232,6 @@ static const struct wps_tag all_tags[] = {
232 232
233 { WPS_TOKEN_DATABASE_PLAYCOUNT, "rp", WPS_REFRESH_DYNAMIC, NULL }, 233 { WPS_TOKEN_DATABASE_PLAYCOUNT, "rp", WPS_REFRESH_DYNAMIC, NULL },
234 { WPS_TOKEN_DATABASE_RATING, "rr", WPS_REFRESH_DYNAMIC, NULL }, 234 { WPS_TOKEN_DATABASE_RATING, "rr", WPS_REFRESH_DYNAMIC, NULL },
235 { WPS_TOKEN_DATABASE_SCORE, "rs", WPS_REFRESH_DYNAMIC, NULL },
236#if CONFIG_CODEC == SWCODEC 235#if CONFIG_CODEC == SWCODEC
237 { WPS_TOKEN_REPLAYGAIN, "rg", WPS_REFRESH_STATIC, NULL }, 236 { WPS_TOKEN_REPLAYGAIN, "rg", WPS_REFRESH_STATIC, NULL },
238 { WPS_TOKEN_CROSSFADE, "xf", WPS_REFRESH_DYNAMIC, NULL }, 237 { WPS_TOKEN_CROSSFADE, "xf", WPS_REFRESH_DYNAMIC, NULL },