[tracker/avoid-album-art-duplicates] tracker-extract: Fix whitespace issues
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/avoid-album-art-duplicates] tracker-extract: Fix whitespace issues
- Date: Thu, 18 Aug 2011 12:24:56 +0000 (UTC)
commit 9f651a136997fca34585ad159dde93799bb2d532
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Aug 18 14:24:33 2011 +0200
tracker-extract: Fix whitespace issues
src/tracker-extract/tracker-albumart.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-extract/tracker-albumart.c b/src/tracker-extract/tracker-albumart.c
index 86a491d..0a182f2 100644
--- a/src/tracker-extract/tracker-albumart.c
+++ b/src/tracker-extract/tracker-albumart.c
@@ -110,14 +110,14 @@ convert_from_other_format (const gchar *found,
if (g_file_get_contents (album_path, &contents, &len2, NULL)) {
gchar *sum1, *sum2;
-
+
sum1 = checksum_for_data (G_CHECKSUM_MD5, buffer, len);
sum2 = checksum_for_data (G_CHECKSUM_MD5, contents, len2);
if (g_strcmp0 (sum1, sum2) == 0) {
/* If album-space-md5.jpg is the same as found,
* make a symlink */
-
+
if (symlink (album_path, target) != 0) {
perror ("symlink() error");
retval = FALSE;
@@ -129,7 +129,7 @@ convert_from_other_format (const gchar *found,
} else {
/* If album-space-md5.jpg isn't the same as found,
* make a new album-md5-md5.jpg (found -> target) */
-
+
g_rename (target_temp, album_path);
}
@@ -137,9 +137,9 @@ convert_from_other_format (const gchar *found,
} else {
/* If there's not yet a album-space-md5.jpg, make one,
* and symlink album-md5-md5.jpg to it */
-
+
g_rename (target_temp, album_path);
-
+
if (symlink (album_path, target) != 0) {
perror ("symlink() error");
retval = FALSE;
@@ -345,7 +345,7 @@ albumart_heuristic (const gchar *artist,
retval = g_file_copy (found_file, target_file, 0, NULL, NULL, NULL, &error);
g_clear_error (&error);
g_object_unref (found_file);
- g_object_unref (target_file);
+ g_object_unref (target_file);
} else if (g_file_get_contents (album_path, &contents, &len2, NULL)) {
gchar *sum1, *sum2;
@@ -385,7 +385,7 @@ albumart_heuristic (const gchar *artist,
/* If there's not yet a album-space-md5.jpg, make one,
* and symlink album-md5-md5.jpg to it */
-
+
file = g_file_new_for_path (album_path);
found_file = g_file_new_for_path (found);
retval = g_file_copy (found_file, file, 0, NULL, NULL, NULL, &error);
@@ -401,7 +401,7 @@ albumart_heuristic (const gchar *artist,
g_clear_error (&error);
retval = FALSE;
}
-
+
g_object_unref (found_file);
g_object_unref (file);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]