[tracker/gb745219] tracker-extract: mp3 passes album instead of song title to libmediaart
- From: Andres Gomez <agomez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gb745219] tracker-extract: mp3 passes album instead of song title to libmediaart
- Date: Fri, 27 Feb 2015 13:26:56 +0000 (UTC)
commit caaa22066570fbfdc35fc6e2fd376d5ff4519dd9
Author: Andres Gomez <andres gomez jolla com>
Date: Thu Feb 26 16:47:42 2015 +0200
tracker-extract: mp3 passes album instead of song title to libmediaart
As explained at
https://wiki.gnome.org/MediaArtStorageSpec and
implemented in other extractors, the strings to
pass in order to generate the album art are the
artist and the album title.
https://bugzilla.gnome.org/show_bug.cgi?id=745219
src/tracker-extract/tracker-extract-mp3.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index b93e4f4..a89987b 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -2658,7 +2658,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
mp3_parse (buffer, buffer_size, audio_offset, uri, metadata, &md);
#ifdef HAVE_LIBMEDIAART
- if (md.performer || md.title) {
+ if (md.performer || md.album) {
MediaArtProcess *media_art_process;
GError *error = NULL;
gboolean success = TRUE;
@@ -2674,7 +2674,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
md.media_art_size,
md.media_art_mime,
md.performer,
- md.title,
+ md.album,
NULL,
&error);
} else {
@@ -2683,7 +2683,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
MEDIA_ART_PROCESS_FLAGS_NONE,
file,
md.performer,
- md.title,
+ md.album,
NULL,
&error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]