Blame SOURCES/0164-examples-Save-image-even-on-match-failure.patch
|
|
73b847 |
From 88bfd55a66e59acef870e36554179746397a3f43 Mon Sep 17 00:00:00 2001
|
|
|
73b847 |
From: Benjamin Berg <bberg@redhat.com>
|
|
|
73b847 |
Date: Thu, 2 Jan 2020 18:43:16 +0100
|
|
|
73b847 |
Subject: [PATCH 164/181] examples: Save image even on match failure
|
|
|
73b847 |
|
|
|
73b847 |
Move the image saving out, so that it is always done when an image is
|
|
|
73b847 |
available. This allows viewing the image that corresponds to a match
|
|
|
73b847 |
failure.
|
|
|
73b847 |
---
|
|
|
73b847 |
examples/verify.c | 8 ++++----
|
|
|
73b847 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
73b847 |
|
|
|
73b847 |
diff --git a/examples/verify.c b/examples/verify.c
|
|
|
73b847 |
index 1249dce..83d74ec 100644
|
|
|
73b847 |
--- a/examples/verify.c
|
|
|
73b847 |
+++ b/examples/verify.c
|
|
|
73b847 |
@@ -75,13 +75,13 @@ on_verify_completed (FpDevice *dev, GAsyncResult *res, void *user_data)
|
|
|
73b847 |
return;
|
|
|
73b847 |
}
|
|
|
73b847 |
|
|
|
73b847 |
+ if (print && fp_device_supports_capture (dev) &&
|
|
|
73b847 |
+ print_image_save (print, "verify.pgm"))
|
|
|
73b847 |
+ g_print ("Print image saved as verify.pgm\n");
|
|
|
73b847 |
+
|
|
|
73b847 |
if (match)
|
|
|
73b847 |
{
|
|
|
73b847 |
g_print ("MATCH!\n");
|
|
|
73b847 |
- if (fp_device_supports_capture (dev) &&
|
|
|
73b847 |
- print_image_save (print, "verify.pgm"))
|
|
|
73b847 |
- g_print ("Print image saved as verify.pgm");
|
|
|
73b847 |
-
|
|
|
73b847 |
verify_data->ret_value = EXIT_SUCCESS;
|
|
|
73b847 |
}
|
|
|
73b847 |
else
|
|
|
73b847 |
--
|
|
|
73b847 |
2.24.1
|
|
|
73b847 |
|