[tracker-miners: 2/4] add error messages in case of unknown GPS ref format
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners: 2/4] add error messages in case of unknown GPS ref format
- Date: Mon, 3 Feb 2020 19:18:02 +0000 (UTC)
commit ec89eb5eaa989ba08f6197282def6d124bed6da7
Author: Viktor Gal <viktor gal maeth com>
Date: Mon Feb 3 09:40:43 2020 +0100
add error messages in case of unknown GPS ref format
src/libtracker-extract/tracker-exif.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libtracker-extract/tracker-exif.c b/src/libtracker-extract/tracker-exif.c
index e0838e11c..ade5c66ed 100644
--- a/src/libtracker-extract/tracker-exif.c
+++ b/src/libtracker-extract/tracker-exif.c
@@ -335,6 +335,9 @@ get_gps_coordinate (ExifData *exif,
if (refentry->data[0] == 'S' || refentry->data[0] == 'W') {
f = -1 * f;
}
+ } else {
+ g_error("Invalid GPS Ref entry!");
+ return NULL;
}
return g_strdup_printf ("%f", f);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]