[tracker] albumart: stop looking for cover if we find already a JPEG



commit 782ede7980d16b4aa2f29dbc7247db59032e514d
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Sep 28 10:50:19 2010 +0300

    albumart: stop looking for cover if we find already a JPEG
    
    Use correctly retval to stop the iteration

 src/tracker-extract/tracker-albumart.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-albumart.c b/src/tracker-extract/tracker-albumart.c
index 36a15d5..1b19196 100644
--- a/src/tracker-extract/tracker-albumart.c
+++ b/src/tracker-extract/tracker-albumart.c
@@ -461,10 +461,9 @@ albumart_heuristic (const gchar *artist,
 					found_file = g_file_new_for_path (found);
 					g_free (found);
 
-					g_file_copy (found_file, file, 0, NULL, NULL, NULL, &error);
+					retval = g_file_copy (found_file, file, 0, NULL, NULL, NULL, &error);
 					g_object_unref (found_file);
 
-					retval = error != NULL;
 					g_clear_error (&error);
 				}
 			} else if (g_str_has_suffix (name_strdown, "png")) {



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