diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-03-09 15:46:00 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-03-09 15:46:00 +0100 |
commit | 66d2ce2da3e8c58fe70ccf559cca41758486ea1f (patch) | |
tree | 0a3d6d59d6b35be7bb3c9ea89bedcb4a5e6cd37d /plugins/gtkui | |
parent | b6832fc06c87a2fd9c98dd5061466985dc612b67 (diff) |
gtkui/artwork: new get_cache_path2 API, crash fix
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/coverart.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/gtkui.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/coverart.c b/plugins/gtkui/coverart.c index ecbb1277..f7d78696 100644 --- a/plugins/gtkui/coverart.c +++ b/plugins/gtkui/coverart.c @@ -272,7 +272,7 @@ get_cover_art_callb (const char *fname, const char *artist, const char *album, i if (width == -1) { char path[2048]; - coverart_plugin->make_cache_path (path, sizeof (path), album, artist, -1); + coverart_plugin->make_cache_path2 (path, sizeof (path), fname, album, artist, -1); deadbeef->mutex_lock (mutex); int i_largest = -1; int size_largest = -1; diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index ea9acc3a..02d5310f 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -864,7 +864,7 @@ gtkui_connect_cb (void *none) { DB_plugin_t **plugins = deadbeef->plug_get_list (); for (int i = 0; plugins[i]; i++) { DB_plugin_t *p = plugins[i]; - if (p->id && !strcmp (p->id, "artwork")) { + if (p->id && !strcmp (p->id, "artwork") && p->version_major == 1 && p->version_minor >= 2) { trace ("gtkui: found cover-art loader plugin\n"); coverart_plugin = (DB_artwork_plugin_t *)p; break; |