tracker r2410 - in trunk: . src/tracker-extract



Author: pvanhoof
Date: Wed Oct 22 08:41:30 2008
New Revision: 2410
URL: http://svn.gnome.org/viewvc/tracker?rev=2410&view=rev

Log:
2008-10-22  Philip Van Hoof  <philip codeminded be>

	* src/tracker-extract/tracker-albumart.c: Cleaned up some more
	code



Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-albumart.c

Modified: trunk/src/tracker-extract/tracker-albumart.c
==============================================================================
--- trunk/src/tracker-extract/tracker-albumart.c	(original)
+++ trunk/src/tracker-extract/tracker-albumart.c	Wed Oct 22 08:41:30 2008
@@ -260,10 +260,6 @@
 	gchar *str;
 	gchar *down;
 
-	if (!prefix) {
-		prefix = "album";
-	}
-
 	*path = NULL;
 
 	if (!a && !b) {
@@ -286,7 +282,7 @@
 	str = g_compute_checksum_for_string (G_CHECKSUM_MD5, down, -1);
 	g_free (down);
 
-	art_filename = g_strdup_printf ("%s-%s.jpeg", prefix, str);
+	art_filename = g_strdup_printf ("%s-%s.jpeg", prefix?prefix:"album", str);
 	g_free (str);
 
 	*path = g_build_filename (dir, art_filename, NULL);



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