[artwork] Remove old artwork_get_xxx in favor of new which has a format arg

This commit is contained in:
ejurgensen
2020-11-18 23:23:05 +01:00
parent a9e6497be2
commit 695927de2a
8 changed files with 15 additions and 31 deletions

View File

@@ -2387,7 +2387,7 @@ cast_metadata_prepare(struct output_metadata *metadata)
CHECK_NULL(L_CAST, cmd = calloc(1, sizeof(struct cast_metadata)));
CHECK_NULL(L_CAST, cmd->artwork = evbuffer_new());
ret = artwork_get_item2(cmd->artwork, queue_item->file_id, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT, ART_FMT_VP8);
ret = artwork_get_item(cmd->artwork, queue_item->file_id, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT, ART_FMT_VP8);
if (ret < 0)
{
DPRINTF(E_INFO, L_CAST, "Failed to retrieve artwork for file '%s'; no artwork will be sent\n", queue_item->path);

View File

@@ -2201,7 +2201,7 @@ raop_metadata_prepare(struct output_metadata *metadata)
CHECK_NULL(L_RAOP, rmd->metadata = evbuffer_new());
CHECK_NULL(L_RAOP, tmp = evbuffer_new());
ret = artwork_get_item(rmd->artwork, queue_item->file_id, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT);
ret = artwork_get_item(rmd->artwork, queue_item->file_id, ART_DEFAULT_WIDTH, ART_DEFAULT_HEIGHT, 0);
if (ret < 0)
{
DPRINTF(E_INFO, L_RAOP, "Failed to retrieve artwork for file '%s'; no artwork will be sent\n", queue_item->path);