diff options
-rw-r--r-- | plugins/artwork/artwork.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/coverart.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 23d05886..613fd825 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -134,7 +134,7 @@ queue_add (const char *fname, const char *artist, const char *album, int img_siz deadbeef->mutex_lock (mutex); for (cover_query_t *q = queue; q; q = q->next) { - if (!strcasecmp (artist, q->artist) || !strcasecmp (album, q->album)) { + if (!strcasecmp (artist, q->artist) && !strcasecmp (album, q->album) && img_size == q->size && callback == q->callback) { deadbeef->mutex_unlock (mutex); if (callback) { callback (NULL, NULL, NULL, user_data); diff --git a/plugins/gtkui/coverart.c b/plugins/gtkui/coverart.c index 42b33085..bb4de51d 100644 --- a/plugins/gtkui/coverart.c +++ b/plugins/gtkui/coverart.c @@ -71,7 +71,7 @@ queue_add (const char *fname, int width, void (*callback) (void *user_data), voi load_query_t *q; if (fname) { for (q = queue; q; q = q->next) { - if (q->fname && !strcmp (q->fname, fname) && width == q->width) { + if (q->fname && !strcmp (q->fname, fname) && width == q->width && q->callback == callback) { deadbeef->mutex_unlock (mutex); return; // dupe } |