[tracker] Use album instead of title for the album art



commit c6fe856d9ff9e65c9efed5c4e248c47d7e0c1efc
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Jan 29 14:33:27 2010 +0100

    Use album instead of title for the album art

 src/tracker-extract/tracker-extract-mp3.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 1dfe101..e57c096 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1993,8 +1993,6 @@ extract_mp3 (const gchar          *uri,
 			tracker_sparql_builder_predicate (metadata, "nmm:albumTrackCount");
 			tracker_sparql_builder_object_int64 (metadata, md.track_count);
 		}
-
-		g_free (md.album);
 	}
 
 	tracker_sparql_builder_subject_iri (metadata, uri);
@@ -2073,9 +2071,10 @@ extract_mp3 (const gchar          *uri,
 	                          md.albumart_size,
 	                          md.albumart_mime,
 	                          NULL,
-	                          md.title,
+	                          md.album,
 	                          filename);
 
+	g_free (md.album);
 	g_free (md.title);
 	g_free (md.albumart_data);
 	g_free (md.albumart_mime);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]