diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-10-01 21:55:07 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-10-01 21:55:07 +0200 |
commit | f542481df58f3222143bc260feb34b5cf537d8e0 (patch) | |
tree | 31cd86e358bc70e6d83955fdcc0d8e05fc32c325 /src/photos | |
parent | 0b99aa7b114b6c8eb0d55742c4be2f3a73f44e39 (diff) | |
parent | bb0e1e40d2de6b093b564f4f2cd0c44aa32380b8 (diff) |
Update upstream source from tag 'upstream/0.30.17'
Update to upstream version '0.30.17'
with Debian dir 3a9f978d21f3777edc044a3c6b84923dd9b60a25
Diffstat (limited to 'src/photos')
-rw-r--r-- | src/photos/PhotoMetadata.vala | 9 |
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); } |