summaryrefslogtreecommitdiff
path: root/src/photos
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-10-02 20:33:39 +0200
committerJörg Frings-Fürst <debian@jff.email>2022-10-02 20:33:39 +0200
commitac6e0b731b9f0b2efd392e3309a5c07e2a66adad (patch)
treed3225c4f583bbc2dd2d4d1270599bdc91d6bbb57 /src/photos
parentbeb8b0dad71871aa66b63901b3e6b6c047e1a646 (diff)
parent133064a8fce1a02e83874295ab20ab1dee304777 (diff)
Merge branch 'release/debian/0.30.17-1'debian/0.30.17-1
Diffstat (limited to 'src/photos')
-rw-r--r--src/photos/PhotoMetadata.vala9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/photos/PhotoMetadata.vala b/src/photos/PhotoMetadata.vala
index 7c100c0..a9b7457 100644
--- a/src/photos/PhotoMetadata.vala
+++ b/src/photos/PhotoMetadata.vala
@@ -1161,19 +1161,24 @@ public class PhotoMetadata : MediaMetadata {
public bool get_gps(out double longitude, out string long_ref, out double latitude, out string lat_ref,
out double altitude) {
- if (!exiv2.get_gps_info(out longitude, out latitude, out altitude)) {
+ longitude = 0.0;
+ latitude = 0.0;
+ altitude = 0.0;
+ if (!exiv2.get_gps_longitude(out longitude) || !exiv2.get_gps_latitude(out latitude)) {
long_ref = null;
lat_ref = null;
return false;
}
+
+ exiv2.get_gps_altitude(out altitude);
long_ref = get_string("Exif.GPSInfo.GPSLongitudeRef");
lat_ref = get_string("Exif.GPSInfo.GPSLatitudeRef");
return true;
}
-
+
public bool get_exposure(out MetadataRational exposure) {
return get_rational("Exif.Photo.ExposureTime", out exposure);
}