Forgot a spotify enabled condition

This commit is contained in:
ejurgensen 2014-04-05 22:30:35 +02:00
parent 0f3400fe99
commit c7aaf6eff3
1 changed files with 4 additions and 0 deletions

View File

@ -860,6 +860,7 @@ artwork_get_own_image(char *path, int max_w, int max_h, int format, struct evbuf
return -1;
if (strncmp(path, "spotify:", strlen("spotify:")) == 0)
#ifdef HAVE_SPOTIFY_H
{
if (!(format & ART_CAN_JPEG))
return -1;
@ -871,6 +872,9 @@ artwork_get_own_image(char *path, int max_w, int max_h, int format, struct evbuf
else
return ART_FMT_JPEG;
}
#else
return -1;
#endif
ret = snprintf(artwork, sizeof(artwork), "%s", path);
if ((ret < 0) || (ret >= sizeof(artwork)))