[tracker/writeback-miner-interaction-0.10: 6/14] libtracker-extract, xmp: Fix misindentation of a function
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/writeback-miner-interaction-0.10: 6/14] libtracker-extract, xmp: Fix misindentation of a function
- Date: Wed, 8 Jun 2011 10:05:33 +0000 (UTC)
commit c581c40f3ea7b57c5cbaa5dcc5fb46958ad69fda
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Jun 7 14:48:01 2011 +0200
libtracker-extract, xmp: Fix misindentation of a function
src/libtracker-extract/tracker-xmp.c | 64 +++++++++++++++++-----------------
1 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index 8e51cd6..68348e1 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -120,38 +120,38 @@ fix_white_balance (const gchar *wb)
static gchar *
gps_coordinate_dup (const gchar *coordinates)
{
- static GRegex *reg = NULL;
- GMatchInfo *info = NULL;
-
- if (!reg) {
- reg = g_regex_new ("([0-9]+),([0-9]+.[0-9]+)([A-Z])", 0, 0, NULL);
- }
-
- if (g_regex_match (reg, coordinates, 0, &info)) {
- gchar *deg,*min,*ref;
- gdouble r,d,m;
-
- deg = g_match_info_fetch (info, 1);
- min = g_match_info_fetch (info, 2);
- ref = g_match_info_fetch (info, 3);
-
- d = atof (deg);
- m = atof (min);
-
- r = d + m/60;
-
- if ( (ref[0] == 'S') || (ref[0] == 'W')) {
- r = r * -1;
- }
-
- g_free (deg);
- g_free (min);
- g_free (ref);
-
- return g_strdup_printf ("%f", r);
- } else {
- return NULL;
- }
+ static GRegex *reg = NULL;
+ GMatchInfo *info = NULL;
+
+ if (!reg) {
+ reg = g_regex_new ("([0-9]+),([0-9]+.[0-9]+)([A-Z])", 0, 0, NULL);
+ }
+
+ if (g_regex_match (reg, coordinates, 0, &info)) {
+ gchar *deg,*min,*ref;
+ gdouble r,d,m;
+
+ deg = g_match_info_fetch (info, 1);
+ min = g_match_info_fetch (info, 2);
+ ref = g_match_info_fetch (info, 3);
+
+ d = atof (deg);
+ m = atof (min);
+
+ r = d + m/60;
+
+ if ( (ref[0] == 'S') || (ref[0] == 'W')) {
+ r = r * -1;
+ }
+
+ g_free (deg);
+ g_free (min);
+ g_free (ref);
+
+ return g_strdup_printf ("%f", r);
+ } else {
+ return NULL;
+ }
}
/* We have an array, now recursively iterate over it's children. Set
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]