Skip to content

Commit

Permalink
gtkui: early out in medialib widget if artwork plugin is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Nov 18, 2023
1 parent 2042a2a commit 89474ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/gtkui/medialib/medialibwidget.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,10 @@ _pixbuf_cell_did_become_visible (void *ctx, const char *pathstr) {
return mlv->folder_icon;
}

if (mlv->artwork_source_id == 0) {
return mlv->folder_icon;
}

int64_t reload_index = mlv->reload_index;
GdkPixbuf *cached_cover = covermanager_cover_for_track_no_default (covermanager_shared (), track, mlv->artwork_source_id, ^(GdkPixbuf *img) {
if (reload_index == mlv->reload_index && img != NULL) {
Expand Down

0 comments on commit 89474ae

Please sign in to comment.