summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index fec13d564f..3c29884260 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -48,6 +48,7 @@
48/* Image stuff */ 48/* Image stuff */
49#include "bmp.h" 49#include "bmp.h"
50#include "atoi.h" 50#include "atoi.h"
51#include "albumart.h"
51#endif 52#endif
52#include "dsp.h" 53#include "dsp.h"
53#include "action.h" 54#include "action.h"
@@ -929,6 +930,19 @@ static char *get_token_value(struct gui_wps *gwps,
929 case WPS_TOKEN_METADATA_COMMENT: 930 case WPS_TOKEN_METADATA_COMMENT:
930 return id3->comment; 931 return id3->comment;
931 932
933#ifdef HAVE_ALBUMART
934 case WPS_TOKEN_ALBUMART_DISPLAY:
935 draw_album_art(gwps, audio_current_aa_hid());
936 return NULL;
937
938 case WPS_TOKEN_ALBUMART_FOUND:
939 if (audio_current_aa_hid() >= 0) {
940 snprintf(buf, buf_size, "C");
941 return buf;
942 }
943 return NULL;
944#endif
945
932 case WPS_TOKEN_FILE_BITRATE: 946 case WPS_TOKEN_FILE_BITRATE:
933 if(id3->bitrate) 947 if(id3->bitrate)
934 snprintf(buf, buf_size, "%d", id3->bitrate); 948 snprintf(buf, buf_size, "%d", id3->bitrate);