mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive pictures: use get_metadata() in dive_create_picture()
Thus, metadata has to be only read once and the picture_load_exif_data() function can be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9b2482aca9
commit
66b71c60a0
3 changed files with 6 additions and 14 deletions
|
@ -98,12 +98,3 @@ extern "C" timestamp_t picture_get_timestamp(const char *filename)
|
|||
get_metadata(filename, &data);
|
||||
return data.timestamp;
|
||||
}
|
||||
|
||||
extern "C" void picture_load_exif_data(struct picture *p)
|
||||
{
|
||||
struct metadata data;
|
||||
if (get_metadata(p->filename, &data) == MEDIATYPE_IO_ERROR)
|
||||
return;
|
||||
p->longitude = data.longitude;
|
||||
p->latitude = data.latitude;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue