1
0
Fork 0
forked from len0rd/rockbox

plugins: image viewer: respect album art setting

Displaying large embedded album art in the
image viewer requires playback to be stopped,
which is pretty disruptive, so respecting the
system setting here may make sense

Change-Id: I479466bf26d85c3305d6c81e2c1818b2c2b2cbdb
This commit is contained in:
Christian Soffke 2025-01-06 01:47:28 +01:00
parent b83504635c
commit ad4113a7e9

View file

@ -1066,14 +1066,20 @@ static bool find_album_art(int *offset, int *filesize, int *status)
(*status) = IMAGE_JPEG;
break;
default:
if (rb->search_albumart_files(current_track, "", np_file, MAX_PATH))
{
(*status) = get_image_type(np_file, false);
return true;
} else
{
return false;
}
(*status) = IMAGE_UNKNOWN;
}
if (IMAGE_UNKNOWN == *status
|| AA_PREFER_IMAGE_FILE == rb->global_settings->album_art)
{
if (rb->search_albumart_files(current_track, "", np_file, MAX_PATH))
{
(*status) = get_image_type(np_file, false);
return true;
}
if (*status == IMAGE_UNKNOWN)
return false;
}
rb->strcpy(np_file, current_track->path);
(*offset) = current_track->albumart.pos;