summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index b271bfedfc..a456bbca23 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -766,10 +766,14 @@ const char *get_token_value(struct gui_wps *gwps,
766 766
767#if (CONFIG_CODEC == SWCODEC) 767#if (CONFIG_CODEC == SWCODEC)
768 case WPS_TOKEN_CROSSFADE: 768 case WPS_TOKEN_CROSSFADE:
769#ifdef HAVE_CROSSFADE
769 if (intval) 770 if (intval)
770 *intval = global_settings.crossfade + 1; 771 *intval = global_settings.crossfade + 1;
771 snprintf(buf, buf_size, "%d", global_settings.crossfade); 772 snprintf(buf, buf_size, "%d", global_settings.crossfade);
772 return buf; 773 return buf;
774#else
775 return NULL;
776#endif
773 777
774 case WPS_TOKEN_REPLAYGAIN: 778 case WPS_TOKEN_REPLAYGAIN:
775 { 779 {