summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-02-25 10:59:54 +0000
committerMartyn Russell <martyn@lanedo.com>2014-06-23 05:31:44 +0100
commit8f9056a3dd449aec6ff1d17857ea8782f2d9ff35 (patch)
treea07af3764f21551bfd5cb2a9d85db76a69fb33e6
parentce450d6136eb407fd97031851620d45d0f4d1ab1 (diff)
downloadlibmediaart-8f9056a3dd449aec6ff1d17857ea8782f2d9ff35.tar.gz
extract: rename (private) media_art_heurstic and make args consistent with others
-rw-r--r--libmediaart/extract.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index c243328..b1268da 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -530,11 +530,11 @@ media_art_find_by_artist_and_title (const gchar *uri,
}
static gboolean
-media_art_heuristic (const gchar *artist,
- const gchar *title,
- MediaArtType type,
- const gchar *filename_uri,
- const gchar *local_uri)
+get_heuristic (MediaArtType type,
+ const gchar *filename_uri,
+ const gchar *local_uri,
+ const gchar *artist,
+ const gchar *title)
{
gchar *art_file_path = NULL;
gchar *album_art_file_path = NULL;
@@ -1457,7 +1457,7 @@ media_art_process_file (GFile *file,
local_art_uri = g_file_get_uri (local_art_file);
- if (!media_art_heuristic (artist, title, type, uri, local_art_uri)) {
+ if (!get_heuristic (type, uri, local_art_uri, artist, title)) {
/* If the heuristic failed, we
* request the download the
* media-art to the media-art