diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 11:53:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 12:42:51 -0700 |
commit | e7ecb690ed2afa5475ec204a378b43b812b8305d (patch) | |
tree | 9c8c7199a6db69042e4f53ae90b9c7663ff690c8 /dive.c | |
parent | 380385d86f636ce78cb0187e92db6a351f196e4f (diff) | |
download | subsurface-e7ecb690ed2afa5475ec204a378b43b812b8305d.tar.gz |
Picture handling: adjust timestamp after it's set
We need to first parse the exif and then adjust the timestamp.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2275,10 +2275,10 @@ struct picture *alloc_picture() void dive_create_picture(struct dive *d, char *filename, int shift_time) { struct picture *p = alloc_picture(); - if (p->timestamp) - p->timestamp += shift_time; p->filename = filename; picture_load_exif_data(p); + if (p->timestamp) + p->timestamp += shift_time; dive_add_picture(d, p); dive_set_geodata_from_picture(d, p); } |