diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-07 04:21:04 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-08 02:51:54 +0200 |
commit | 8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f (patch) | |
tree | e8b3e939086891abd39571767df1cfde5cd8e36a /fiv-browser.c | |
parent | 930744e1652c9ec5ad6447c0a2a1e486cae9a2a9 (diff) | |
download | fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.tar.gz fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.tar.xz fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.zip |
Add a command line option to extract thumbnails
Only use LibRaw for now, which probably has the most impact
using the least amount of effort.
Diffstat (limited to 'fiv-browser.c')
-rw-r--r-- | fiv-browser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fiv-browser.c b/fiv-browser.c index 4c4dab6..111c291 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -555,8 +555,9 @@ thumbnailer_reprocess_entry(FivBrowser *self, GBytes *output, Entry *entry) { g_clear_object(&entry->icon); g_clear_pointer(&entry->thumbnail, cairo_surface_destroy); + guint64 dummy; if (!output || !(entry->thumbnail = rescale_thumbnail( - fiv_io_deserialize(output), self->item_height))) { + fiv_io_deserialize(output, &dummy), self->item_height))) { entry_add_thumbnail(entry, self); materialize_icon(self, entry); } else { |