diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-12-31 01:59:01 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-12-31 03:43:51 +0100 |
commit | 2ac918b7abb148038a3c8312b3e789d6d2ad3701 (patch) | |
tree | 1b8b3824bef0e945fa80fa7181010c245763f14e /fiv-browser.c | |
parent | 5f8dc88fa715563c3abb8ed0d8ae5d2736f7a1a9 (diff) | |
download | fiv-2ac918b7abb148038a3c8312b3e789d6d2ad3701.tar.gz fiv-2ac918b7abb148038a3c8312b3e789d6d2ad3701.tar.xz fiv-2ac918b7abb148038a3c8312b3e789d6d2ad3701.zip |
A bunch of additional fixes
Diffstat (limited to 'fiv-browser.c')
-rw-r--r-- | fiv-browser.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fiv-browser.c b/fiv-browser.c index d426454..b0ec19e 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -469,13 +469,14 @@ on_thumbnailer_ready(GObject *object, GAsyncResult *res, gpointer user_data) g_error_free(error); return; } - - g_warning("%s", error->message); + if (!g_subprocess_get_if_exited(subprocess) || + g_subprocess_get_exit_status(subprocess) != EXIT_FAILURE) + g_warning("%s", error->message); g_error_free(error); } - gboolean succeeded = g_subprocess_get_if_exited(self->thumbnailer) && - g_subprocess_get_exit_status(self->thumbnailer) == EXIT_SUCCESS; + gboolean succeeded = g_subprocess_get_if_exited(subprocess) && + g_subprocess_get_exit_status(subprocess) == EXIT_SUCCESS; g_clear_object(&self->thumbnailer); if (!self->thumbnail_queue) { g_warning("finished thumbnailing an unknown image"); |