Mercurial > hg > forks > geeqie
changeset 1947:a40854a0b58c
Add a bit of debugging messages in exif cache stuff.
author | Laurent Monin <geeqie@norz.org> |
---|---|
date | Thu, 23 Dec 2010 01:58:26 +0100 |
parents | a2cded8d3e90 |
children | faeaebe67335 |
files | src/exif-common.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exif-common.c Thu Dec 23 01:56:47 2010 +0100 +++ b/src/exif-common.c Thu Dec 23 01:58:26 2010 +0100 @@ -651,8 +651,11 @@ if (!fd || !is_readable_file(fd->path)) return NULL; - if (file_cache_get(exif_cache, fd)) return fd->exif; - + if (file_cache_get(exif_cache, fd)) + { + DEBUG_4("Exif Cache Hit %p", fd->exif); + return fd->exif; + } /* CACHE_TYPE_XMP_METADATA file should exist only if the metadata are * not writable directly, thus it should contain the most up-to-date version */ sidecar_path = NULL; @@ -665,6 +668,7 @@ #endif fd->exif = exif_read(fd->path, sidecar_path, fd->modified_xmp); + DEBUG_4("Exif Cache Miss %p", fd->exif); g_free(sidecar_path); return fd->exif;