[cache] Prevent log errors if cache disabled

This commit is contained in:
ejurgensen 2016-01-09 01:26:59 +01:00
parent d356a0ae5c
commit 0f58495e0d

View File

@ -1679,7 +1679,11 @@ cache_artwork_get(int type, int64_t persistentid, int max_w, int max_h, int *cac
int ret; int ret;
if (!g_initialized) if (!g_initialized)
return -1; {
*cached = 0;
*format = 0;
return 0;
}
command_init(&cmd); command_init(&cmd);