diff --git a/src/artwork.h b/src/artwork.h index 0e64c85e..57b23a7a 100644 --- a/src/artwork.h +++ b/src/artwork.h @@ -5,6 +5,9 @@ #define ART_FMT_PNG 1 #define ART_FMT_JPEG 2 +#define ART_DEFAULT_HEIGHT 600 +#define ART_DEFAULT_WIDTH 600 + #include /* diff --git a/src/mpd.c b/src/mpd.c index 7ad9bdcb..dca63bb2 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -4702,7 +4702,7 @@ artwork_cb(struct evhttp_request *req, void *arg) return; } - format = artwork_get_item(evbuffer, itemid, 600, 600); + format = artwork_get_item(evbuffer, itemid, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT); if (format < 0) { httpd_send_error(req, HTTP_NOTFOUND, "Document was not found"); diff --git a/src/outputs/raop.c b/src/outputs/raop.c index 2ede0d93..b34c37c2 100644 --- a/src/outputs/raop.c +++ b/src/outputs/raop.c @@ -879,7 +879,7 @@ raop_metadata_prepare(int id) goto skip_artwork; } - ret = artwork_get_item(rmd->artwork, queue_item->file_id, 600, 600); + ret = artwork_get_item(rmd->artwork, queue_item->file_id, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT); if (ret < 0) { DPRINTF(E_INFO, L_RAOP, "Failed to retrieve artwork for file id %d; no artwork will be sent\n", id);