diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 03:52:01 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 05:24:57 +0200 |
commit | 05ac3a065198378653d0b94dc25946c71d4d23a1 (patch) | |
tree | 17a33ef7dc107920402e3dc690c5d3e1f3de7aae /fiv-thumbnail.h | |
parent | 4317c7e581415078c876ad5699d41cbea3c89cb5 (diff) | |
download | fiv-05ac3a065198378653d0b94dc25946c71d4d23a1.tar.gz fiv-05ac3a065198378653d0b94dc25946c71d4d23a1.tar.xz fiv-05ac3a065198378653d0b94dc25946c71d4d23a1.zip |
Check filesize when retrieving thumbnails
In particular, this handles screenshots from Rigol oscilloscopes,
which reuse the same name series with the same file modification time.
Diffstat (limited to 'fiv-thumbnail.h')
-rw-r--r-- | fiv-thumbnail.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fiv-thumbnail.h b/fiv-thumbnail.h index de5be51..05c3dc1 100644 --- a/fiv-thumbnail.h +++ b/fiv-thumbnail.h @@ -68,8 +68,8 @@ cairo_surface_t *fiv_thumbnail_produce_for_search( /// Retrieves a thumbnail of the most appropriate quality and resolution /// for the target file. -cairo_surface_t *fiv_thumbnail_lookup( - const char *uri, gint64 mtime_msec, FivThumbnailSize size); +cairo_surface_t *fiv_thumbnail_lookup(const char *uri, + gint64 mtime_msec, guint64 filesize, FivThumbnailSize size); /// Invalidate the wide thumbnail cache. May write to standard streams. void fiv_thumbnail_invalidate(void); |