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:
Berthold Stoeger 2018-03-19 20:20:42 +01:00 committed by Lubomir I. Ivanov
parent 9b2482aca9
commit 66b71c60a0
3 changed files with 6 additions and 14 deletions

View file

@ -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;
}