[libmediaart/process-file-fixes: 2/3] extract: Remove wrong MIME type check in media_art_process_file()
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart/process-file-fixes: 2/3] extract: Remove wrong MIME type check in media_art_process_file()
- Date: Thu, 17 Oct 2013 17:16:11 +0000 (UTC)
commit f9ea070bbc45f142f2d94391837c6a441a2152fe
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Wed Oct 16 19:24:10 2013 +0100
extract: Remove wrong MIME type check in media_art_process_file()
The 'mime' parameter describes the image buffer, not the media file,
so it's wrong to fill it in from the media file.
libmediaart/extract.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index adf1a99..abd0970 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -1155,17 +1155,6 @@ media_art_process_file (const guchar *buffer,
mtime = get_mtime (file);
- if (!mime) {
- GFileInfo *info;
-
- info = g_file_query_info (file,
- G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
- G_FILE_QUERY_INFO_NONE,
- NULL, NULL);
- mime = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
- g_object_unref (info);
- }
-
media_art_get_file (artist,
title,
media_art_type_name[type],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]