[tracker: 7/12] tracker-extract: Set retval to false if contents can't be read



commit 890bd0f77a1eb4aa996be5bb9d508e8c7ac079c0
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Aug 18 12:22:37 2011 +0200

    tracker-extract: Set retval to false if contents can't be read

 src/tracker-extract/tracker-albumart.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-albumart.c b/src/tracker-extract/tracker-albumart.c
index 44d461a..86a491d 100644
--- a/src/tracker-extract/tracker-albumart.c
+++ b/src/tracker-extract/tracker-albumart.c
@@ -412,6 +412,7 @@ albumart_heuristic (const gchar *artist,
 						g_free (buffer);
 					} else {
 						/* Can't read contents of the cover.jpg file ... */
+						retval = FALSE;
 					}
 				} else if (g_str_has_suffix (name_strdown, "png")) {
 



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