aboutsummaryrefslogtreecommitdiff
path: root/fiv-browser.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-06-07 04:21:04 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-06-08 02:51:54 +0200
commit8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f (patch)
treee8b3e939086891abd39571767df1cfde5cd8e36a /fiv-browser.c
parent930744e1652c9ec5ad6447c0a2a1e486cae9a2a9 (diff)
downloadfiv-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.c3
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 {