summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-12 16:15:34 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-12 16:15:34 +0000
commit27cbf6bcea0d0280a2f5d46ccf460edb08187b17 (patch)
treee81ec5f1276174d394e1fd877272f428c1e9016d /apps/gui/gwps-common.c
parentf9fb49284ef3c9ba03d33f3555f61ab5a1be9143 (diff)
downloadrockbox-27cbf6bcea0d0280a2f5d46ccf460edb08187b17.tar.gz
rockbox-27cbf6bcea0d0280a2f5d46ccf460edb08187b17.zip
* Add the crossfade (%xf) WPS tag
* Avoid eating the whole line when unsuccessfully parsing a %x or %xl tag. This will prevent unknown tags starting with %x from making the line disappear. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13127 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index cdfea80fd4..d0d46da837 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1176,6 +1176,12 @@ static char *get_token_value(struct gui_wps *gwps,
1176 return buf; 1176 return buf;
1177 1177
1178#if (CONFIG_CODEC == SWCODEC) 1178#if (CONFIG_CODEC == SWCODEC)
1179 case WPS_TOKEN_CROSSFADE:
1180 if (intval)
1181 *intval = global_settings.crossfade + 1;
1182 snprintf(buf, buf_size, "%d", global_settings.crossfade);
1183 return buf;
1184
1179 case WPS_TOKEN_REPLAYGAIN: 1185 case WPS_TOKEN_REPLAYGAIN:
1180 { 1186 {
1181 int val; 1187 int val;
@@ -1216,7 +1222,7 @@ static char *get_token_value(struct gui_wps *gwps,
1216 } 1222 }
1217 return buf; 1223 return buf;
1218 } 1224 }
1219#endif 1225#endif /* (CONFIG_CODEC == SWCODEC) */
1220 1226
1221#if (CONFIG_CODEC != MAS3507D) 1227#if (CONFIG_CODEC != MAS3507D)
1222 case WPS_TOKEN_SOUND_PITCH: 1228 case WPS_TOKEN_SOUND_PITCH: