diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-12-30 22:52:23 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-12-31 00:41:04 +0100 |
commit | 5f8dc88fa715563c3abb8ed0d8ae5d2736f7a1a9 (patch) | |
tree | 3434d40e8eb5427fc0da5d5e41325c511e16c44e /fiv-thumbnail.c | |
parent | 380ddd540bd93850e4df254200cba5b1fdf05cc6 (diff) | |
download | fiv-5f8dc88fa715563c3abb8ed0d8ae5d2736f7a1a9.tar.gz fiv-5f8dc88fa715563c3abb8ed0d8ae5d2736f7a1a9.tar.xz fiv-5f8dc88fa715563c3abb8ed0d8ae5d2736f7a1a9.zip |
Minor URL-related fix-ups
Diffstat (limited to 'fiv-thumbnail.c')
-rw-r--r-- | fiv-thumbnail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c index 60df749..076a917 100644 --- a/fiv-thumbnail.c +++ b/fiv-thumbnail.c @@ -223,9 +223,12 @@ fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size, GError **error) max_size <= FIV_THUMBNAIL_SIZE_MAX, FALSE); // Local files only, at least for now. + // TODO(p): Support thumbnailing the trash scheme. const gchar *path = g_file_peek_path(target); - if (!path) + if (!path) { + set_error(error, "only local files are supported"); return FALSE; + } GMappedFile *mf = g_mapped_file_new(path, FALSE, error); if (!mf) |