[tracker/rss-enclosures] albumart: stop looking for cover if we find already a JPEG
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] albumart: stop looking for cover if we find already a JPEG
- Date: Wed, 24 Nov 2010 01:53:20 +0000 (UTC)
commit 355c1b80f784ca9d8d1a6fd2aa4c9f71089c078e
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]