summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-06-15 11:13:46 +0200
committerJens Georg <mail@jensge.org>2014-06-15 11:14:39 +0200
commitf68fee114c4e378475e6b03ddf697614466c0606 (patch)
treea9441b1575929f9c159a72d81e20c1e14d28408d
parent841d1c84dbebe5eca280e360b28cd81c78b24100 (diff)
downloadlibmediaart-f68fee114c4e378475e6b03ddf697614466c0606.tar.gz
extract: Save original filename
And not the lowercase filename. Fixes issues with case-mismatch Signed-off-by: Jens Georg <mail@jensge.org> https://bugzilla.gnome.org/show_bug.cgi?id=731678
-rw-r--r--libmediaart/extract.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index dc0e79e..e9ff970 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -486,12 +486,12 @@ media_art_find_by_artist_and_title (const gchar *uri,
priority = classify_image_file (search, name_strdown);
image_list[priority] = g_list_prepend (image_list[priority],
- name_strdown);
+ name_utf8);
} else {
- g_free (name_strdown);
+ g_free (name_utf8);
}
- g_free (name_utf8);
+ g_free (name_strdown);
}
/* Use the results to pick a media art image */